Hi all,
I'm running ImageJ 1.39t on Mac OSX v.10.5.2. I'm working with a 29MB, 8-bit, 5558x5558 pixel jpg image. When I calculate the centroid of a polygon (fairly circular, ~2800 pixels diameter) in the center of the image, I get negative values for the centroid. Is there a way to correct this? I had this problem once before in 2006 with an old version of ImageJ. At the time, the solution was to upgrade to the latest version, but I have checked and am now running a current version. I would appreciate any suggestions for dealing with this problem. Thanks. -Gwen |
On Wednesday 05 March 2008 05:35:03 Gwen Barnes wrote:
> I'm running ImageJ 1.39t on Mac OSX v.10.5.2. I'm working with a 29MB, > 8-bit, 5558x5558 pixel jpg image. When I calculate the centroid of a > polygon (fairly circular, ~2800 pixels diameter) in the center of the > image, I get negative values for the centroid. Is there a way to correct > this? Since your image is quite large, this sounds like a variable overflow somewhere. Until this is fixed, you could try the Particle8_plus plugin at my site (in the Morphology zip archive). I do not know if the computation of is exactly the same (in my plugin, I calculate the centre of mass instead of the centroid). Since the centroid is usually computed from the perimeter pixels, you could extract the perimeter (using the boundary8 macro in the same archive) and compute the centre of mass of the resulting boundary. Actually I do not think I have tested my plugin with such a large image either (and I wonder if it would overflow somewhere else too). I would be grateful (if it is not too much trouble) if you could test this plugin and mail me the Result Table values that you get (if you can compress the *thresholded binary* image to a manageable size, it would help me to check the plugin too). http://www.dentistry.bham.ac.uk/landinig/software/software.html Cheers, Gabriel |
In reply to this post by Gwen Barnes
> I'm running ImageJ 1.39t on Mac OSX v.10.5.2. I'm working with a 29MB,
> 8-bit, 5558x5558 pixel jpg image. When I calculate the centroid of a > polygon (fairly circular, ~2800 pixels diameter) in the center of the > image, > I get negative values for the centroid. Is there a way to correct > this? > > I had this problem once before in 2006 with an old version of ImageJ. > At > the time, the solution was to upgrade to the latest version, but I have > checked and am now running a current version. I would appreciate any > suggestions for dealing with this problem. Thanks. This bug is fixed in ImageJ 1.39u. You can upgrade by running the ImageJ_Updater plugin (http://rsb.info.nih.gov/ij/plugins/imagej-updater.html) and selecting "daily build" from the drop down menu. -wayne |
Yea! 1.39u gets the correct centroid values. Thank you.
-Gwen On 3/5/08, Wayne Rasband <[hidden email]> wrote: > > > I'm running ImageJ 1.39t on Mac OSX v.10.5.2. I'm working with a 29MB, > > 8-bit, 5558x5558 pixel jpg image. When I calculate the centroid of a > > polygon (fairly circular, ~2800 pixels diameter) in the center of the > > image, > > I get negative values for the centroid. Is there a way to correct > > this? > > > > I had this problem once before in 2006 with an old version of ImageJ. > > At > > the time, the solution was to upgrade to the latest version, but I have > > checked and am now running a current version. I would appreciate any > > suggestions for dealing with this problem. Thanks. > > > This bug is fixed in ImageJ 1.39u. You can upgrade by running the > ImageJ_Updater plugin > (http://rsb.info.nih.gov/ij/plugins/imagej-updater.html) and selecting > "daily build" from the drop down menu. > > > -wayne |
Free forum by Nabble | Edit this page |