Info

This question is closed. Reopen it to edit or answer.

Locating peak intensity centroid in an image

1 view (last 30 days)
Sharif
Sharif on 6 May 2019
Closed: Stephan on 6 May 2019
Hello,
I have a hundreds of images that look like:
img.png
I need to be able to reliably and robustly find the centroid of the white square based on location of its peak intensity. However, the presence of the scale bar complicated thing.
I thought that fitting Gaussians to equally spaced vertical profiles, taken between the scale bar notches would be a good start. E.g:
img002.png
a straight fit did not produce a good fit:
gauss_fit.png
Excluding the following (xData <= 240) | (yData < 100) did result in a better fit:
gauss_fit_exc.png

Answers (0)

This question is closed.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!