Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Saving an image with unset pixels

What happens during imwrite if you specify a png image and that the passed mat has unset pixels? Are they treated as no opacity pixels? Because when I save I still get the gray value, so perhaps when I create a cv::Mat is it filled in gray by default?

Saving an image with unset pixels

What happens during imwrite if you specify a png image and that the passed mat has unset pixels? Are they treated as no opacity pixels? Because when I save I still get the gray value, so perhaps when I create a cv::Mat is it filled in gray by default?