Re: Getting coordinates inside a ROI

Posted by Peter Mc on
URL: http://imagej.273.s1.nabble.com/Getting-coordinates-inside-a-ROI-tp5003250p5003325.html

Thanks Michael;

I did not know how the mask works,now I can understand what you both said.
Now I can allocate the right space for the points avoiding null points inside the array,about using a Point[] or int[][]... I am not sure how the Garbage Collector performs in Java,is there a big difference getting rid of a Point[] or int[][] when as in this case are both "full" (without null or 0 elements)?finally both are objects with a similar memory allocate by the new operator,aren't they? and what about the former case (with null elements)? Anyway these couple of questions are just for curiosity but I would like to know,haha.

Thank you again for your answer ,your advice has been really useful.
Research engineer
HGGM. Madrid.