Ask Your Question

Revision history [back]

You could convert it to gray-scale (cv::cvtColor) and compare its value to white (which could be 1.0 or 255 depending on your image type). A fast way to do this for all pixels is cv::threshold.