Posted by
Herbie-4 on
Nov 26, 2014; 9:19am
URL: http://imagej.273.s1.nabble.com/Multiple-angled-and-tiled-ROIs-bins-tp5010627p5010634.html
Camille,
what about having a look at the ImageJ macro language and its ROI-routines?
<
http://rsb.info.nih.gov/ij/developer/macro/functions.html>
If you draw a ROI, i.e. a selection, of whatever shape on your image you
can get its bounding rectangle with
Roi.getBounds( x, y, width, height );
and you may move the very ROI to another location of your image with
Roi.move( x_i, y_i );
So if you know the new locations, i.e. x_i = x + dx, y_i = y + dy, you
are done. Of course you can put Roi.move( x_i, y_i ) in a loop to get a
sort of sequential ROI-tiling.
Does this help?
Best
Herbie
:::::::::::::::::::::::::::::::::
On 26.11.14 02:19, ccamille wrote:
> I'm looking for a macro or tool which will allow me to create multiple
> bins/ROIs across an image and at a specified angle.
>
> I don't want the bins/ROIs to overlap, but preferably they would "tile" with
> touching edges across the entire image, in order to measure intensity as a
> function of distance in a black and white image. The bins are fairly small
> (8px wide in a 1024px image), so I would like to have it semi-automated.
>
> The ideal (as far as I can picture it) workflow involves manually drawing a
> line or ROI across and image, and then running a macro/program which would
> tile that line/ROI to the image's other corner.
>
> Thanks!
>
>
>
> --
> View this message in context:
http://imagej.1557.x6.nabble.com/Multiple-angled-and-tiled-ROIs-bins-tp5010627.html> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html