Re: Drawing Text Rois

Posted by Michael Schmid on
URL: http://imagej.273.s1.nabble.com/Drawing-Text-Rois-tp5013813p5013816.html

On Jul 30, 2015, at 15:06, Greg wrote:

> I would like to apply the overlay method, isn't it possible to 'flatten' the
> image with the overlay on top for exporting?

Hi Greg,

if you have a text overlay, you can flatten the image (Image>Overlay>Flatten), but that will be at a scale of 1, so you will get a pixelated font again.
An alternative is displaying the image with a high zoom factor and using Plugins>Utilities>Capture Image, but it will only show the area currently visible at the screen. So it will depend on the location on the screen and the screen size whether you can display the full image like this, and probably it won't work at all for images that are not visible on the screen (I have never tried).

Both 'Flatten' and 'Capture Image' will produce an RGB image, i.e. 8 bits per color channel (convert it to grayscale if you don't use color). If you start with 16-bit data, you will lose information.

> Anyways, how would I use overlays together with TextRois to have a higher
> resolution for the text?

Overlays are just collections of ROIs. So you can add your TextRois to the overlay of the ImagePlus.
For the API, see ij.gui.Overlay, ImagePlus.setOverlay, ImagePlus.getOverlay.

Michael

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