java.awt.Graphics object for Roi.draw

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

java.awt.Graphics object for Roi.draw

Frederick Ross
I am constructing an Roi from calculations on an image, but to display
it, I apparently need the java.awt.Graphics object corresponding to
that image.  Where can I find this creature in the hierarchy of
ImagePluses and ImageProcessors?

--
Frederick Ross
Graduate Fellow, (|Siggia> + |McKinney>)/sqrt(2) Lab
The Rockefeller University
Je ne suis pas Fred Cross!
Reply | Threaded
Open this post in threaded view
|

Re: java.awt.Graphics object for Roi.draw

Wayne Rasband
> I am constructing an Roi from calculations on an image, but to
> display it, I apparently need the java.awt.Graphics object
> corresponding to that image.  Where can I find this creature
> in the hierarchy of ImagePluses and ImageProcessors?

Use the ImagePlus.setRoi(roi) method to display an ROI.



-wayne