Re: Using overlays on image channels

Posted by John Hayes on
URL: http://imagej.273.s1.nabble.com/Using-overlays-on-image-channels-tp5003054p5003109.html

Hi Ed,

I believe you are looking for CompositeImage::setMode.

Best,

John

Le 24 mai 2013 à 13:06, edsimmons a écrit :

> Rasband, Wayne (NIH/NIMH) [E] wrote
>>  imp.setMode(CompositeImage.GRAYSCALE);
>>  overlay = new Overlay();
>>  // add rectangle that will be displayed on channel 1 of all 10 frames
>>  rect1 = new Roi(100, 100, 100, 100);
>>  rect1.setPosition(1, 1, 0);
>>  overlay.add(rect1);
>>
>
> Thanks Wayne, very nice example.
>
> Please could you steer me towards the Java API equivalent of
> imp.setMode(CompositeImage.GRAYSCALE);?
>
> I've tried looking at the ImagePlus and Stack api docs, but not found the
> way to actually do it to the imageplus i'm trying to work with.
>
> Thanks,
> Ed
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/Using-overlays-on-image-channels-tp5003054p5003107.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html