Login  Register

Re: Using overlays on image channels

Posted by edsimmons on May 24, 2013; 11:06am
URL: http://imagej.273.s1.nabble.com/Using-overlays-on-image-channels-tp5003054p5003107.html

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