Posted by
Gary Chinga on
URL: http://imagej.273.s1.nabble.com/gary-chinga-plugin-tp3699211p3699212.html
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.javaOn 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.
>