A
aneuryzma
Hi,
this is my code:
IplImage *image = 0;
....
if( !image ) {
image = cvCreateImage( cvGetSize(frame), 8, 3 );
image->origin = frame->origin;
}
myMethod(image);
cvShowImage( "CamShiftDemo", image );
....
Why do I receive this error ? I'm just passing the pointer image by
reference.. when myMethod finishes, I should have the same pointer to
the modified image instead it is NULL.. ?
this is my code:
IplImage *image = 0;
....
if( !image ) {
image = cvCreateImage( cvGetSize(frame), 8, 3 );
image->origin = frame->origin;
}
myMethod(image);
cvShowImage( "CamShiftDemo", image );
....
Why do I receive this error ? I'm just passing the pointer image by
reference.. when myMethod finishes, I should have the same pointer to
the modified image instead it is NULL.. ?