Login  Register

Re: Iterator over Roi points anywhere?

Posted by Dimitri Vanhecke on Apr 12, 2016; 6:05am
URL: http://imagej.273.s1.nabble.com/Iterator-over-Roi-points-anywhere-tp5016087p5016104.html

Hi,



Great question. Is there any chance there is an equally nice solution on
macro writing level? Currently I use a (time consuming) workaround by
making all pixels outside the ROI black and subtracting 1 from all pixels
in the image. Then I iterate through the bounding box of the ROI and use an
if statement to check if the value of the pixel. If -1, then we must be
outside the ROI...
A nice solution like the getcontainedpoints method would be great (and much
faster, I assume).
Kind greetings,
Dimitri Vanhecke

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