Login  Register

How to create a regular grid of rectangular ROI's?

Posted by RDD on Apr 07, 2011; 3:13pm
URL: http://imagej.273.s1.nabble.com/How-to-create-a-regular-grid-of-rectangular-ROI-s-tp3685056.html

I am looking for a convenient way to create a regular grid of rectangular ROI's.
I want, for example, an array of 5x5 rectangular ROI's of each 40x40 pixels that are spaced by 10 pixels.

Currently I achieve this by using the function "Specify ROI" by adapting the data for each ROI, clicking OK and gving a ctrl-T to add it to the ROI manager. Then I have to re-open the function "Specify ROI" again to continue with the next ROI. When I have repeated this 25 times I save the ROI's to be sure I don't have to do it again if I want to re-analyze the same data.

Is there a way to create such an array of ROI's in a more convenient way? I have already tried to read the .roi file format, but apparently it is not a text file. Is it possible to import a text file with the coordinate data?