#include <mrpt/otherlibs/do_opencv_includes.h>
#include <stdio.h>
Go to the source code of this file.
Macros | |
#define | ABS(x) ( ( x < 0 )? -x : x ) |
Functions | |
static __inline int | pixval8 (IplImage *img, int r, int c) |
A function to get a pixel value from an 8-bit unsigned image. More... | |
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. More... | |
static __inline float | pixval32f (IplImage *img, int r, int c) |
A function to get a pixel value from a 32-bit floating-point image. More... | |
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. More... | |
static __inline double | pixval64f (IplImage *img, int r, int c) |
A function to get a pixel value from a 64-bit floating-point image. More... | |
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. More... | |
void | fatal_error (char *format,...) |
Prints an error message and aborts the program. More... | |
char * | replace_extension (const char *file, const char *extn) |
Replaces a file's extension, which is assumed to be everything after the last dot ('. More... | |
void | progress (int done) |
A function that removes the path from a filename. More... | |
void | erase_from_stream (FILE *stream, int n) |
Erases a specified number of characters from a stream. More... | |
int | array_double (void **array, int n, int size) |
Doubles the size of an array with error checking More... | |
double | dist_sq_2D (CvPoint2D64f p1, CvPoint2D64f p2) |
Calculates the squared distance between two points. More... | |
void | draw_x (IplImage *img, CvPoint pt, int r, int w, CvScalar color) |
Draws an x on an image. More... | |
IplImage * | stack_imgs (IplImage *img1, IplImage *img2) |
Combines two images by scacking one on top of the other More... | |
void | vid_view (IplImage **imgs, int n, char *win_name) |
Allows user to view an array of images as a video. More... | |
int | win_closed (char *name) |
Checks if a HighGUI window is still open or not More... | |
int array_double | ( | void ** | array, |
int | n, | ||
int | size | ||
) |
Doubles the size of an array with error checking
array | pointer to an array whose size is to be doubled |
n | number of elements allocated for array |
size | size in bytes of elements in array |
double dist_sq_2D | ( | CvPoint2D64f | p1, |
CvPoint2D64f | p2 | ||
) |
Calculates the squared distance between two points.
p1 | a point |
p2 | another point |
void draw_x | ( | IplImage * | img, |
CvPoint | pt, | ||
int | r, | ||
int | w, | ||
CvScalar | color | ||
) |
Draws an x on an image.
img | an image |
pt | the center point of the x |
r | the x's radius |
w | the x's line weight |
color | the color of the x |
void erase_from_stream | ( | FILE * | stream, |
int | n | ||
) |
Erases a specified number of characters from a stream.
stream | the stream from which to erase characters |
n | the number of characters to erase |
void fatal_error | ( | char * | format, |
... | |||
) |
Prints an error message and aborts the program.
The error message is of the form "Error: ...", where the ... is specified by the format argument
format | an error message format string (as with printf(3) ). |
|
static |
A function to get a pixel value from a 32-bit floating-point image.
img | an image |
r | row |
c | column |
Definition at line 69 of file vision/src/sift-hess/utils.h.
Referenced by mrpt::vision::CFeatureExtraction::getLaplacianValue(), and mrpt::vision::CFeatureExtraction::getTimesExtrema().
|
static |
A function to get a pixel value from a 64-bit floating-point image.
img | an image |
r | row |
c | column |
Definition at line 97 of file vision/src/sift-hess/utils.h.
|
static |
A function to get a pixel value from an 8-bit unsigned image.
img | an image |
r | row |
c | column |
Definition at line 41 of file vision/src/sift-hess/utils.h.
void progress | ( | int | done | ) |
A function that removes the path from a filename.
Similar to the Unix basename command.
pathname | a (full) path name |
done | if 0, this function simply increments the state of the pinwheel; otherwise it prints "done" |
char* replace_extension | ( | const char * | file, |
const char * | extn | ||
) |
Replaces a file's extension, which is assumed to be everything after the last dot ('.
') character.
file | the name of a file |
extn | a new extension for file; should not include a dot (i.e. "jpg" , not ".jpg" ) unless the new file extension should contain two dots. |
|
static |
A function to set a pixel value in a 32-bit floating-point image.
img | an image |
r | row |
c | column |
val | pixel value |
Definition at line 83 of file vision/src/sift-hess/utils.h.
References val.
|
static |
A function to set a pixel value in a 64-bit floating-point image.
img | an image |
r | row |
c | column |
val | pixel value |
Definition at line 111 of file vision/src/sift-hess/utils.h.
References val.
|
static |
A function to set a pixel value in an 8-bit unsigned image.
img | an image |
r | row |
c | column |
val | pixel value |
Definition at line 55 of file vision/src/sift-hess/utils.h.
References val.
IplImage* stack_imgs | ( | IplImage * | img1, |
IplImage * | img2 | ||
) |
Combines two images by scacking one on top of the other
img1 | top image |
img2 | bottom image |
void vid_view | ( | IplImage ** | imgs, |
int | n, | ||
char * | win_name | ||
) |
Allows user to view an array of images as a video.
Keyboard controls are as follows:
imgs | an array of images |
n | number of images in imgs |
win_name | name of window in which images are displayed |
int win_closed | ( | char * | name | ) |
Checks if a HighGUI window is still open or not
name | the name of the window we're checking |
Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020 |