I have an image where there is a laser spot in towards the top right corner that I want to be able to detect and find the centroid of. The image was taken in a mostly dark room with a webcam, but you can see some spots of light that were coming into the room from the outside in the image. Is there a way to detect the laser spot while avoiding the other light spots in the image. My overall goal is to be able to take other images with the camera and make sure that the correct spot is being detected even if there are spots from another light source in the image. Is there anything I can do to eliminate these spots, but keep the laser so that when I use regionprops or some other code it doesn't find the centroid of one of those spots?
MATLAB: Distinguishing between laser and light spots
image processingImage Processing Toolboxlaser spot detectionlight spots
Best Answer