Login  Register

16 bit grayScale Image Composed of Very small Roi Rectangles

Posted by Mahsa Naseri on Oct 07, 2013; 9:17pm
URL: http://imagej.273.s1.nabble.com/16-bit-grayScale-Image-Composed-of-Very-small-Roi-Rectangles-tp5005075.html

Hi ,

I would like to create an image which is composed of rectangles  connected to one another , each having a gray color.
The image is a 16 bit gray scale image which I create by creating a short processor.

The rectangles are of double sizes, and some are very small. ( their length is less than 1)

A couple of questions:


1-      I generate an integer  value between 0-65536 for the gray color, I create a Roi and set the Roi's color to the integer value. This does not seem to give me the right color.


2-      For the rectangles which length is less than 1 , I assume no rectangles are created as each pixel makes a length 1. So I scale the rectangles so that the minium length is > 1.
is there a better approach for doing this ?

Thanks for your help in advance.

Mahsa


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