Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use cv::integral() on multi-channel image?

Can you use cv::integral on a BGR Mat? I want to calculate the integral image for each channel. Do I need to split the channels and call cv::integral for each channel or can I just use the function with a 3 channel Mat?

I am currently using this utility class that helps but I'm not sure if its made to handle multichannel Mats?

http://pi-virtualworld.blogspot.com/2014/03/integral-images-for-computing-mean-and.html