Login  Register

Re: Cells to Individual Images Plugin?

Posted by BenTupper on Jan 19, 2010; 1:33pm
URL: http://imagej.273.s1.nabble.com/Cells-to-Individual-Images-Plugin-tp3689682p3689685.html

Hi,

The macro below will create a subimage for each particle listed in the  
results table.  If you don't have a recent copy of ImageJ you'll have  
to modify this line...

run("Specify...", "width=&bw height=&bh x=&bx y=&by");

to look something like this...

run("Specify...", "width="+bw+"height="+bh+"x="+bx+"y="+by");

Cheers,
Ben

run("Blobs (25K)");
origID = getImageID();
setAutoThreshold();
run("Set Measurements...", "  bounding display redirect=blobs.gif  
decimal=3");
run("Analyze Particles...", "size=0-Infinity circularity=0.00-1.00  
show=Nothing clear display record");

for (i=0; i<nResults(); i++){
        selectImage(origID);
        bx = getResult("BX",i);
        by = getResult("BY",i);
        bw = getResult("Width",i);
        bh = getResult("Height",i);
        run("Specify...", "width=&bw height=&bh x=&bx y=&by");
        run("Copy");
        run("Internal Clipboard");
        rename("sub-"+i);
}

On Jan 19, 2010, at 7:54 AM, gabejackson wrote:

> Hello!
>
> I was wondering if we have some sort of plugin to create individual  
> images
> out of cells on a b/w thresholded image? Basically I just got an  
> image from
> fluorescence microscopy and have the cells are seperated and would  
> now like
> to create an image out of each cell instead of having them all on  
> one image.
> Which algorithm or plugin?
>
> Many thanks in advance for any help,
>
> Greetings,
>
> Gabe
> --
> View this message in context: http://n2.nabble.com/Cells-to-Individual-Images-Plugin-tp4419810p4419810.html
> Sent from the ImageJ mailing list archive at Nabble.com.


Cheers,
Ben