#include <opencv/cv.h>
Functions | |
int | clr2float (const IplImage *src, CvMat **dest, unsigned char threshold, float k=1.0, IplImage *thresholded=NULL) |
Transforms a colorful image to its float representation. |
int clr2float | ( | const IplImage * | src, | |
CvMat ** | dest, | |||
unsigned char | threshold, | |||
float | k, | |||
IplImage * | thresholded | |||
) |
Transforms a colorful image to its float representation.
src | Image in BGR format. | |
dest | Pointer to a destination matrix. | |
threshold | Level of gray which will transform to zero. | |
k | Saturation - if k>1.0, differences between positive and negative values grow. | |
thresholded | If not NULL, BW thresholded version of src is stored here. |