writing content of double* to OpenCV IplImage * imageData

Hi All,
I tried copying data from an image of type double * img1 into an IplImage * iplimage
I used the following
 for(int i=0; i<width; i++)
(for int j=0; j<height; j++)
imgl[i+j*imageWidth] = imageData[i+j*imageWidth];

and the output only show a third in height of the original image.
Help please
Last edited on
Topic archived. No new replies allowed.