Info
此问题已关闭。 请重新打开它进行编辑或回答。
Locating peak intensity centroid in an image
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a hundreds of images that look like:
![img.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218232/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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218233/img002.png)
a straight fit did not produce a good fit:
![gauss_fit.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218234/gauss_fit.png)
Excluding the following (xData <= 240) | (yData < 100) did result in a better fit:
![gauss_fit_exc.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218235/gauss_fit_exc.png)
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!