Determine missing locations from a grid
2 次查看(过去 30 天)
显示 更早的评论
Hi.
I have a set of locations indicated by the "mask" image below. (This is obtained from a raw grayscale image using thresholding and regionprops).

I need to obtain the centroid positions of each of these spots and then project back onto my raw grayscale image to obtain pixel intensity and measure the FWHM. The problem is that in the mask image (=binary image), there are the occasional missing spots as circled in red above.
Is there a way to:
1: Determine if there are any missing spots 2: Fill in the guess location of the missing spots by using adjacent spot information or some othe rmethod
I do have the coordinates of each detected spot - see attached file
In short, the first column is x coordinate (horizontal), and 2nd column is y coordinate (vertical)
i.e.
5 305 48 1667
4 372 43 1901
4 405 42 2605
4 438 36 1897
4 505 47 3337
3 571 23 1456
3 637 31 2010
3 671 12 953
3 770 24 1517
3 804 23 2167
Its to be noted that the grid isn't exactly regular, over the width of my image (which is much bigger than the one shown above), I expect the grid to increase by around 1-2 pixels with respect to the central region due to optical distortion.
Thanks for any help Jason
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!