center of gravity calculation from a dfiffraction limited spot

조회 수: 2 (최근 30일)
Gift
Gift 2021년 2월 23일
답변: darova 2021년 3월 2일
I will like to calculate the center of gravity from arrays of spots from a png file. How can I go about it?
  댓글 수: 2
darova
darova 2021년 2월 23일
Did you try regionprops? Please attach the image
Gift
Gift 2021년 2월 24일
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.

댓글을 달려면 로그인하십시오.

답변 (2개)

Bhomik Kankaria
Bhomik Kankaria 2021년 2월 27일
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
Gift
Gift 2021년 3월 1일
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

댓글을 달려면 로그인하십시오.


darova
darova 2021년 3월 2일
  • Try binarize or im2bw to convert image to 0-1 (binary). Experiment with grayscale parameter (see help)
  • use regionprops

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by