MATLAB Answers

Locating peak intensity centroid in an image

2 views (last 30 days)
Sharif on 6 May 2019
I have a hundreds of images that look like:
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:
a simple fit did not produce a good fit:
Excluding the following (xData <= 240) | (yData < 100) did result in a better fit:
I am no longer sure if this is the best approach!
I would really appreciate any advice on how to best find the peak intensity centroid.
A sample image is attached.
Many thanks,


Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!