I am trying to create a transparent image in OpenCV and wave it as jpg without any success.
My code is something such as this:
string outputImageName="myimage.jpg";
Mat outputImage(outputRows,outputCols,CV_8UC4);
outputImage=cv::Scalar(255,255,255,255);
imwrite(outputImageName,outputImage);
But the image is not transparent and its colour is white.
How can I do this?
If OpenCV can not do this, is there any free library that I use for this?