Align ROI to the center of particle

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Align ROI to the center of particle

Yury
This post was updated on .
I need to select ROIs -rectangular or ellipse- for different particles on an image or stack. Is it possible after selecting ROI manually to align its center to the maximum for center of mass more or less automatically?
mal
Reply | Threaded
Open this post in threaded view
|

Re: Align ROI to the center of particle

mal
Yury wrote
I need to select ROIs -rectangular or ellipse- for different particles on an image or stack. Is it possible after selecting ROI manually to align its center to the maximum for center of mass more or less automatically?
I would think calculating the centroid would be a likely way of getting the center coordinates, perhaps with some thresholding to limit your points of interest.  If you will be aligning to a central max or min I would suggest first filtering with a Gaussian, mean, or median filter to remove points where it is likely to be noise from the camera and not the extremum you want.

Hope this helps.
Reply | Threaded
Open this post in threaded view
|

Re: Align ROI to the center of particle

Yury
mal Thank you for reply!

The problem is how to automate process.
I choose a particle manually and set a ROI (rectangular). What I want that this rectangular aligns automatically so that its center will be a center of particle I choose. Any help...