Yes.
If you convert this to a greyscale image, you should be able to determine a threshold that covers most white/grey pixel. You could also add additional checks if the RBG values are sufficiently similar (i.e. a grey or white pixel)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!