I have a tif image with lots of small white pixels dispersed throughout on a dark bluish background. How can I use Matlab to detect those small white pixels and change them into the same blue shade as my image background? Please note that my image contains other colours that I want to keep unchanged. I just need to get rid of the white pixels and merge them with my bluish background. Thanks!
Are there other white pixels that need to be retained? If there are, can they be distinguished by size? Or is it necessary to look at surrounding color as well to determine whether to get rid of any particular small white pixel?