Re: ImageJ Plugin Help

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: ImageJ Plugin Help

dhani02
2012/12/4 Dwi Ramadhani <[hidden email]>

> Can somebody help me to modify my plugin so the results window after I run
> my plugin can show the percentage of the red pulp area that defined by this
> formula "(value in first row that represented red pulp area in spleen
> histology / (total value in first row and second row that represented white
> pulp area * 100)". Here my plugin script and spleen section histology image
> that can be use with my plugin.
> Regards,
> Dhani.
>
> import ij.*;
> import ij.text.*;
> import ij.process.*;
> import ij.gui.*;
> import java.awt.*;
> import ij.plugin.*;
> import ij.plugin.filter.*;
>
> public class Spleen_Analysis implements PlugIn {
>
>     public void run(String arg) {
>         ImagePlus image = IJ.getImage();
>         IJ.run("Subtract Background...", "rolling=100 light sliding");
>         IJ.run("Colour Deconvolution", "vectors=H&E");
>         IJ.run("Close");
>         IJ.run("Threshold...", "Otsu");
>         IJ.run("Convert to Mask", "");
>         IJ.run("Close");
>         IJ.run("Create Selection", "");
>         IJ.run("Measure", "");
>         IJ.run("Close");
>         IJ.run("Threshold...");
>         IJ.run("Threshold...", "Otsu");
>         IJ.run("Convert to Mask", "");
>         IJ.run("Create Selection", "");
>         IJ.run("Measure", "");
>         IJ.run("Close");
>         IJ.run("Close");
>         IJ.run("Close");
>     }
>
> }
>
>
>
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

DSC_0122.jpg (593K) Download Attachment