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,134 times
Last updated: Nov 12 '14
Percentage of color in a frame of video
Area of a single pixel object in OpenCV
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
OpenCV DescriptorMatcher matches
Can't compile .cu file when including opencv.hpp
Using OpenCV's stitching module, strange error when compositing images
What's the best way to segment different coloured blobs?
compile error in opencv2/flann/lsh_table.h when compiling bgslibrary
cv::inRange