Facial Recognition
UsePCAtoperformfacialrecognition
 All Classes Files Functions Variables Typedefs Macros
tiff_util.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include <stdlib.h>
10 #include <tiffio.h>
11 #include <unistd.h>
12 #include "linalg.h"
13 
21 vector* tiff_to_vec(char* filename);
22 
34 TIFF* vec_to_tiff(char* filename, vector* vec, size_t width, size_t height);
35 
45 FILE* get_all_tiff(char* path, int* num_files);
46 
54 vector* tiff_stream_to_vec(FILE* stream);
vector * tiff_to_vec(char *filename)
Converts tiff to vector this function will take a TIFF filename and return a vector* with every eleme...
Definition: tiff_util.c:11
File containing common linear algebra functions.
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 corres...
Definition: tiff_util.c:35
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 c...
Definition: tiff_util.c:77
vector * tiff_stream_to_vec(FILE *stream)
Converts FILE* tiff stream into a vector the images are appended row-wise.
Definition: tiff_util.c:98
represents a vector padding is to make sure that matrix and vector both have the same byte size and a...
Definition: linalg.h:27