Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

so, it'll be:

double * pointer to_some_imgdata = ... // ?
int H = height ?? 
int W = width ?? 
Mat mat (H, W, CV_64F,  pointer to_some_imgdata).clone(); // clone == copy the actual pixel data

// now this is the real "easy" part !
imshow( "lalaland", mat);
waitKey(); // wait "forever," until any key was pressed, while this windoe has focus)

so, it'll be:

double * pointer to_some_imgdata =  ... // to_some_imgdata ?
int H = height ?? 
int W = width ?? 
Mat mat (H, W, CV_64F,  pointer to_some_imgdata).clone(); // clone == copy the actual pixel data

// now this is the real "easy" part !
imshow( "lalaland", mat);
waitKey(); // wait "forever," until any key was pressed, while this windoe has focus)

so, it'll be:

double * pointer =  ... // to_some_imgdata ?
int H = height ?? 
int W = width ?? 
Mat mat (H, W, CV_64F,  pointer to_some_imgdata).clone(); pointer).clone(); // clone == copy the actual pixel data

// now this is the real "easy" part !
imshow( "lalaland", mat);
waitKey(); // wait "forever," until any key was pressed, while this windoe has focus)

so, it'll be:

double * pointer =  ... // to_some_imgdata ?
int H = height ?? 
int W = width ?? 
Mat mat (H, W, CV_64F, pointer).clone(); // clone == copy the actual pixel data

// now this is the real "easy" part !
imshow( "lalaland", mat);
waitKey(); // wait "forever," until any key was pressed, while this windoe window has focus)