Login  Register

how ot find the center of an ROI

Posted by Aryeh Weiss on Jul 22, 2019; 6:39pm
URL: http://imagej.273.s1.nabble.com/how-ot-find-the-center-of-an-ROI-tp5022337.html

The Roi class has a method called getCentroid() that returns the
centroid of an Roi.]

Is there a similarly simple way to find the center of mass of an Roi or
Selection.
so far, it looks like I need to do the following:

1. define an Analyzer(imp) object
2. Use Analyzer.measure() to put the mesurements into a ResultsTable
3. Read the appropriate columns of the ResultsTable.

Is this the way to do it, or is there a way to directly get it from the
Roi, like the centroid?

--aryeh

--
Aryeh Weiss
Faculty of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html