| | |
| | | #ifndef IMAGE_H |
| | | #define IMAGE_H |
| | | |
| | | |
| | | #include <stdlib.h> |
| | | #include <stdio.h> |
| | | #include <float.h> |
| | | #include <string.h> |
| | | #include <math.h> |
| | | |
| | | #ifdef OPENCV |
| | | #include "opencv2/highgui/highgui_c.h" |
| | | #include "opencv2/imgproc/imgproc_c.h" |
| | | #endif |
| | | |
| | | typedef struct { |
| | | int h; |
| | | int w; |
| | |
| | | float get_pixel_extend(image m, int x, int y, int c); |
| | | void set_pixel(image m, int x, int y, int c, float val); |
| | | void add_pixel(image m, int x, int y, int c, float val); |
| | | float billinear_interpolate(image im, float x, float y, int c); |
| | | float bilinear_interpolate(image im, float x, float y, int c); |
| | | |
| | | image get_image_layer(image m, int l); |
| | | |