15 #include <mrpt/otherlibs/do_opencv_includes.h> 25 #define ABS(x) ((x < 0) ? -x : x) 40 return (
int)(((uchar*)(
img->imageData +
img->widthStep *
r))[
c]);
53 ((uchar*)(
img->imageData +
img->widthStep *
r))[
c] =
val;
66 return ((
float*)(
img->imageData +
img->widthStep *
r))[
c];
79 ((
float*)(
img->imageData +
img->widthStep *
r))[
c] =
val;
92 return (
double)(((
double*)(
img->imageData +
img->widthStep *
r))[
c]);
105 ((
double*)(
img->imageData +
img->widthStep *
r))[
c] =
val;
181 extern double dist_sq_2D(CvPoint2D64f p1, CvPoint2D64f p2);
192 extern void draw_x(IplImage*
img, CvPoint pt,
int r,
int w, CvScalar
color);
202 extern IplImage*
stack_imgs(IplImage* img1, IplImage* img2);
223 extern void vid_view(IplImage** imgs,
int n,
char* win_name);
IplImage * stack_imgs(IplImage *img1, IplImage *img2)
Combines two images by scacking one on top of the other
static __inline float pixval32f(IplImage *img, int r, int c)
A function to get a pixel value from a 32-bit floating-point image.
static __inline int pixval8(IplImage *img, int r, int c)
A function to get a pixel value from an 8-bit unsigned image.
static __inline void setpix64f(IplImage *img, int r, int c, double val)
A function to set a pixel value in a 64-bit floating-point image.
GLubyte GLubyte GLubyte GLubyte w
void erase_from_stream(FILE *stream, int n)
Erases a specified number of characters from a stream.
void vid_view(IplImage **imgs, int n, char *win_name)
Allows user to view an array of images as a video.
double dist_sq_2D(CvPoint2D64f p1, CvPoint2D64f p2)
Calculates the squared distance between two points.
int win_closed(char *name)
Checks if a HighGUI window is still open or not
char * replace_extension(const char *file, const char *extn)
Replaces a file's extension, which is assumed to be everything after the last dot ('...
static __inline void setpix32f(IplImage *img, int r, int c, float val)
A function to set a pixel value in a 32-bit floating-point image.
void progress(int done)
A function that removes the path from a filename.
GLdouble GLdouble GLdouble r
GLuint const GLchar * name
GLenum GLsizei GLenum format
int array_double(void **array, int n, int size)
Doubles the size of an array with error checking
void draw_x(IplImage *img, CvPoint pt, int r, int w, CvScalar color)
Draws an x on an image.
static __inline double pixval64f(IplImage *img, int r, int c)
A function to get a pixel value from a 64-bit floating-point image.
static __inline void setpix8(IplImage *img, int r, int c, uchar val)
A function to set a pixel value in an 8-bit unsigned image.
void fatal_error(char *format,...)
Prints an error message and aborts the program.