I am interested in retrieving objects within an area.
For instance,
Figure 1 showed the intensity profile of my laser profile. By laser intensity, I divide the profile into 2 region of interest (ROI1 and ROI2).
Figure 2 shows the overlap of my result of the expression of positive responses and the laser intensity profile. The positive response data file consists of x and y coordinates. As you can see, the results are scattered from the image of the laser profile.
Here is what I want to do, I want to remove the spots in ROI2 and reset everything else, as shown in Fig. 3. How do I do this? In particular, how can I determine the irregular shape ROI2 in matlab and extract the coordinates of the positive response data. Thanks for the help.
source share