center of gravity calculation from a dfiffraction limited spot

5 Ansichten (letzte 30 Tage)
Gift
Gift am 23 Feb. 2021
Beantwortet: darova am 2 Mär. 2021
I will like to calculate the center of gravity from arrays of spots from a png file. How can I go about it?
  2 Kommentare
darova
darova am 23 Feb. 2021
Did you try regionprops? Please attach the image
Gift
Gift am 24 Feb. 2021
Thank you for your response. No, I did not use regionprops. Kindly find attached the image. If possible,I will also like to get the deviation of the spots.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Bhomik Kankaria
Bhomik Kankaria am 27 Feb. 2021
Hi,
Center of gravity can be calculated using 'regionprops' function from Image Processing Toolbox. You can use centroid as property name to calculate center of gravity in a image.
To know more about the function regionprops, refer to the link below -
  1 Kommentar
Gift
Gift am 1 Mär. 2021
Thank you for yoor rsponse. Please I am new to programming. can you kindly write a code on how it can be done. i.e the COG calculation and the lateral resolution

Melden Sie sich an, um zu kommentieren.


darova
darova am 2 Mär. 2021
  • Try binarize or im2bw to convert image to 0-1 (binary). Experiment with grayscale parameter (see help)
  • use regionprops

Community Treasure Hunt

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

Start Hunting!

Translated by