Re: Candidate for MaximumFinder.java update
Posted by
Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/Candidate-for-MaximumFinder-java-update-tp5008256p5008284.html
On Wednesday 18 Jun 2014 14:41:11 you wrote:
> By the way, I realised that it is no needed to process the result with
> particles8 to do what I suggested earlier. This macro would do:
>
> //-------------------------8<--------------------------
> //DomesH40.txt
> //This processes domes and keeps those strictly with h=40
> // G. Landini at bham. ac. uk
> // 28 June 2014
> //
> //run("Blobs (25K)");
> //run("Invert"); // to make bright blobs.
> h=40
> setBatchMode(true);
> run("Duplicate...", "title=domes");
> run("Domes ", "height="+h);
> setOption("BlackBackground", true);
> run("Duplicate...", "title=mask");
> setThreshold(1, 255);
> run("Convert to Mask");
>
> selectWindow("domes");
> setThreshold(h, h);
> run("Convert to Mask");
>
> run("BinaryReconstruct ", "mask=mask seed=domes white");
> rename("domes="+h);
> //selectWindow("mask");
> //close();
> setBatchMode(false);
> //-------------------------8<--------------------------
Hi Aryeh, I see what you mean that the plugins do not work in Fiji.
Even the domes plugin is called with all the parameters filled, it shows the
dialog window (but it shouldn't).
In case you want to try, the above works fine in IJ1.
Cheers
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html