Posted by
Md Tamjidul Hoque on
May 27, 2010; 4:06am
URL: http://imagej.273.s1.nabble.com/Analyze-particles-Help-and-bug-tp3688137p3688141.html
Rasband, Wayne (NIH/NIMH) [E] wrote:
> In the 1.44b9 daily build you can generate the particle outlines by using the "In situ Show" option to display the outlines as an overlay and then drawing the overlay. Here is a JavaScript example:
>
> imp = IJ.openImage("
http://rsb.info.nih.gov/ij/images/blobs.gif");
> IJ.setAutoThreshold(imp, "Default");
> IJ.run(imp, "Analyze Particles...", "size=350 show=Outlines in_situ");
> ip = imp.getProcessor().duplicate();
> ip = ip.convertToByte(false);
> ip.setColor(Color.black);
> ip.fill();
> ip.setColor(Color.white);
> overlay = imp.getOverlay();
> overlay.drawPixels(ip); // requires 1.44b9 or later
> imp.setOverlay(null);
> imp.show();
> new ImagePlus("Outlines", ip).show();
>
> -wayne
>
>
Dear Wayne
I think the other theme behind the 'in_situ" was not to open the
window (specially for the batch mode) and to apply the output to current
imp .
Now with the current change in 1.44b9, I could not figure out how can I
get a outlined and numbered object using "in_situ" for 'Analyze
Particles ...' (such as Image#1) ?
Because, "in_situ" mode I have to generate (a) outlined and numbered
objects as well as (b) outlined and non-numbered objects,
so that I can have
Image #1:(
http://sites.google.com/site/tamjidulhoque/home/resume-of/useful-links/1_CountAllbySize.zip?attredirects=0&d=1)
as previously it was possible to get Image#1 which is not working now with the updated version 1.44b9 in "in_situ" mode).
But I can have Image #4:(
http://sites.google.com/site/tamjidulhoque/home/resume-of/useful-links/4_Circularitybasedsubsetoutlinedinsitu.zip?attredirects=0&d=1)
now.
So, I can add Image #1 and Image #4 to form the final result (Image # 5:
http://sites.google.com/site/tamjidulhoque/home/resume-of/useful-links/5_finalResultof1add4.zip?attredirects=0&d=1).
But again he problem is I can not get Image #1 in 'in_situ' mode.
Thanks
Tamjid