Hello,
>>>>> In <483...@gm...>
>>>>> Flavio Percoco Premoli <fla...@gm...> wrote:
> > CVAPI(void) cvGoodFeaturesToTrack( const CvArr* image, CvArr* eig_image,
> > CvArr* temp_image, CvPoint2D32f* corners,
> > int* corner_count, double quality_level,
> > double min_distance,
> > const CvArr* mask CV_DEFAULT(NULL),
> > int block_size CV_DEFAULT(3),
> > int use_harris CV_DEFAULT(0),
> > double k CV_DEFAULT(0.04) );
> Not exactly, the thing is that i don't know what should i pass to the
> mask, i tried passing an array [X,Y], then i tried with a cv point
> cv.cvPoint( X, Y ) and nothing. what i don't know is what type of data
> is this:
> const CvArr* mask CV_DEFAULT(NULL)
> Or how do i convert my X and Y points to a region.
In this case, a "CvArr* mask" is a image such as IplImage or CvMat.
First you must create the black image such as
IplImage* mask = cvCreateImage(cvGetSize(input_image),
input_image->depth, input_image->nChannels);
cvZero( mask );
Next you draw the specified region on the image "mask".
Non-zero pixels indicate the region.
Your question isn't concerned with cvcell.
I recommend you to post this question to OpenCV mailing list
if you don't understand the way to use the function.
Sincerely,
--
Hiroki Sugano
E-mail: hi...@ea...
Department of Communications and Computer Engineering
Graduate School of Informatics, Kyoto University, Japan
|