Functions

clr2float.h File Reference

#include <opencv/cv.h>
Include dependency graph for clr2float.h:
This graph shows which files directly or indirectly include this file:

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.

Function Documentation

int clr2float ( const IplImage *  src,
CvMat **  dest,
unsigned char  threshold,
float  k,
IplImage *  thresholded 
)

Transforms a colorful image to its float representation.

Parameters:
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.
Returns:
Length of the destination data, or negative if an error occurs.

Here is the call graph for this function:

Here is the caller graph for this function: