Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to calculate the average with CV_32F foramt?

Hi all. Good morning :)

I have a question about the CV_32F Format.

I want to calculate the pixel average with CV_8U, CV_32F format images.

So, I used the API as below: cv::mean() cv::meanStdDev()

The case of CV_8U, it works well. I can get the average value. But the CV_32F couldn't. It always returned nan value.

So... my question is 'how to calculate the average with CV_32F format image?'.

Please advise for me :)

Thank you!

Best regards, William Kim