Dear friends Image`s users
I have the following trouble related to the plug in "shape descriptors 1m" of Gary Chinga: with the image already thresholded and the window "shape descriptors" opened, ticked "show outlines" and not ticket "include edge particles", than I press OK. The plug in returns one window with the list of particles with the requested measure and another window with the outlined particles. These numerations do not coincide. What can be wrong? Could anybody help me, please? Thank you in advance. |
I have updated the plugin and corrected the number of the outlines...
However, with the latest version of IJ I get an exception when trying to get the convexity and solidity value. I get the following message: java.lang.IllegalArgumentException: "XStart" column not found at ij.measure.ResultsTable.getValue(ResultsTable.java:211) at Shape_Descriptor1o.findConvexArea(Shape_Descriptor1o.java:250) at Shape_Descriptor1o.run(Shape_Descriptor1o.java:196) at ij.IJ.runFilterPlugIn(IJ.java:199) at ij.IJ.runUserPlugIn(IJ.java:267) at ij.ImageJ.runUserPlugIn(ImageJ.java:212) at ij.plugin.PlugInExecuter.run(Compiler.java:188) at java.lang.Thread.run(Thread.java:613) The method causing the problem is: float[][] findConvexArea(ResultsTable rt, ImageProcessor ipTemp){ int nParticles = rt.getCounter(); ResultsTable systemRT= ResultsTable.getResultsTable(); float[][] cValues = new float[2][nParticles]; //Array for the area and perimeter convex dimension for each particle ImagePlus impTemp = new ImagePlus("Test", ipTemp); WindowManager.setTempCurrentImage(impTemp); for (int i=0; i<nParticles;i++){ IJ.doWand((int)rt.getValue("XStart", i),(int)rt.getValue ("YStart", i)); IJ.run("Convex Hull"); IJ.run("Measure"); cValues[0][i] = (float)systemRT.getValue("Area", i); cValues[1][i] = (float)systemRT.getValue("Perim.", i); } systemRT.reset(); return cValues; } I really dont have time to fix this exception right now... perhaps someone else can detect the problem or is a new bug introduced recently? Regards, Gary. http://www.gcsca.net/IJ/Shape_Descriptor1o.java On Sep 12, 2006, at 9:49 PM, Kratus Ranieri wrote: > Dear friends Image`s users > I have the following trouble related to the plug in "shape > descriptors 1m" of Gary Chinga: with the image already thresholded > and the window "shape descriptors" opened, ticked "show outlines" > and not ticket "include edge particles", than I press OK. The plug > in returns one window with the list of particles with the requested > measure and another window with the outlined particles. These > numerations do not coincide. What can be wrong? Could anybody help > me, please? Thank you in advance. > |
On Wednesday 13 September 2006 17:49, Gary Chinga wrote:
> I have updated the plugin and corrected the number of the outlines... > However, with the latest version of IJ I get an exception when trying > to get the convexity and solidity value. I get the following message: > > java.lang.IllegalArgumentException: "XStart" column not found > at ij.measure.ResultsTable.getValue(ResultsTable.java:211) Hola Gary, It seems to work fine in my setup with 1.37r (linux). Cheers, Gabriel |
The Shape descriptor plugin has been updated again. Version 1.37s is
required and fix the reported exception. Gracias Gabriel and thanks to Wayne again for the responses. Gary. www.gcsca.net On Sep 13, 2006, at 8:26 PM, Gabriel Landini wrote: > On Wednesday 13 September 2006 17:49, Gary Chinga wrote: >> I have updated the plugin and corrected the number of the outlines... >> However, with the latest version of IJ I get an exception when trying >> to get the convexity and solidity value. I get the following message: >> >> java.lang.IllegalArgumentException: "XStart" column not found >> at ij.measure.ResultsTable.getValue(ResultsTable.java:211) > > Hola Gary, > It seems to work fine in my setup with 1.37r (linux). > > Cheers, > > Gabriel > > |
Dear Gary,
just tried Shape Descriptor 1p and found that an error was produced when trying to draw particle outlines with recent versions of ij (me using 1.38t) due to the recent substitution of the "unlock image" function with "reset". The relevant line should be updated to: IJ.run("Reset...", "reset=[Locked Image]"); (no need for a single line patch, is it?) Thanks once again for sharing your work! Marco |
Free forum by Nabble | Edit this page |