Create white Image using javacv

Viewed 631

I want to create a white image having the dimensions of another IplImage. I know the function to create a black image .
this is the code :

       IplImage whiteImg = IplImage.create(sourceImage.width(),
            sourceImage.height(), IPL_DEPTH_8U, 1);
       cvSetZero(whiteImg);

I want to create from the sourceImage white image in the same dimensions;

Any help?

Thanks.

1 Answers
Related