Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to calculate standard deviation on image with transparency

Hello everyone.

How do I calculate the standard deviation and mean on a certain image with transparency? I tried loading an image and then calculate the stddev and mean but I'm getting unexpected results.

This is my image with transparency: image description

Now, I want to calulate this only on the red star. So how do I do this? Because OpenCV treats transparent as black.

Thanks.