Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Locating peak intensity centroid in an image
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (0)
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!