Login  Register

RGB Split setColor(Color.BLUE)

Posted by Boizeau marielaure on Jan 21, 2008; 8:51am
URL: http://imagej.273.s1.nabble.com/RGB-Split-setColor-Color-BLUE-tp3697482.html

Hi,
 
I have develop a plugin with a step of splitting an RGB image and then I
have to threshold it.
 
part of the plugin :
 
    ImagePlus imagetosave =win55.getImagePlus();
    IJ.run("RGB Split");
    IJ.setThreshold(128, 255);
    IJ.run("Convert to Mask");
    String pathsave =dir+"/imagesretraitees/"+listTIF[i];
    IJ.saveAs("Tiff", pathsave);
 
the IJ.run("RGB Split") take a lot of time.
 
I had try to use :
imagetosave.setColor(Color.BLUE);
instead. But it doen't work.
 
Have you some way out to save time.
Thank you
 
Marie