Facial Recognition
UsePCAtoperformfacialrecognition
|
File containing common libtiff wrapper functions. More...
Functions | |
vector * | tiff_to_vec (char *filename) |
Converts tiff to vector this function will take a TIFF filename and return a vector* with every element corresponding to pixel. More... | |
TIFF * | vec_to_tiff (char *filename, vector *vec, size_t width, size_t height) |
Converts vector to tiff this function will take a vector and return a TIFF* with every element corresponding to pixel. More... | |
FILE * | get_all_tiff (char *path, int *num_files) |
Recursively earches the path for all files of .tiff type the search relies on being able to run the commands find and ls. More... | |
vector * | tiff_stream_to_vec (FILE *stream) |
Converts FILE* tiff stream into a vector the images are appended row-wise. More... | |
File containing common libtiff wrapper functions.
Minhyuk Park
FILE* get_all_tiff | ( | char * | path, |
int * | num_files | ||
) |
Recursively earches the path for all files of .tiff type the search relies on being able to run the commands find and ls.
path | char* the path containing the files |
num_files | int* outputs the number of files read |
vector* tiff_stream_to_vec | ( | FILE * | stream | ) |
Converts FILE* tiff stream into a vector the images are appended row-wise.
stream | FILE* returned from get_all_tiff() |
References tiff_to_vec(), and vec_append().
vector* tiff_to_vec | ( | char * | filename | ) |
Converts tiff to vector this function will take a TIFF filename and return a vector* with every element corresponding to pixel.
filename | char* the input filename |
References _vector::padding, VEC, and vector_create().
Referenced by tiff_stream_to_vec().
TIFF* vec_to_tiff | ( | char * | filename, |
vector * | vec, | ||
size_t | width, | ||
size_t | height | ||
) |
Converts vector to tiff this function will take a vector and return a TIFF* with every element corresponding to pixel.
filename | char* the output filename |
vec | vector* vector representing the image |
width | size_t width of the image |
height | size_t height of the image |
References _vector::size, and VEC.