How to check if pixel is near white color
Hi, I have an color image (BGR)in a Mat. How can i check if pixel near white color?
Thanks
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.
Hi @Compvis Please check this thread! you may find this useful.
Asked: 2014-11-12 01:27:11 -0600
Seen: 1,081 times
Last updated: Nov 12 '14
cv::inRange