I am trying to build a simple java app, which would count particles and then display their number. I am using imagej (ij.jar) library, everything works perfect until the little box with result is supposed to be shown. COuld anyone pease explain to me how can I display that. And the second thing, how do I extract that value to an int.
my current code: button action, which leads to:
ImagePlus imp = IJ.openImage("C:\\Users\\bibaleze69\\Desktop\\imageprocessing\\chromosomes2.jpg");
imp1.show();
IJ.run(imp, "Color Threshold...", "");
IJ.run(imp, "Analyze Particles...", "show=[Overlay Outlines] display summarize");