Re: How ImageJ process non-rectangular ROIs?

Posted by panovr on
URL: http://imagej.273.s1.nabble.com/How-ImageJ-process-non-rectangular-ROIs-tp3701627p3701628.html

Hi wayne,
  does ImageJ treate non-rectangular ROI like these (a guess):
  If a PlugInFilter returns the SUPPORTS_MASKING flag, then one
selected a non-rectangular ROI in the image. When ImageJ process the
pixels in the ROI, it will test the mask for the ROI: if the mask for
the pixel is zero, then ImageJ will not process this pixel, else
ImageJ will do the process of the plugin.
  By the way, how does ImageJ create the mask for the ROI (rectangular
and non-rectangular ROIs)? Does ImageJ first calculate the bounding
rectangular for the non-rectangular ROI and then use some algorithems
to create the mask for the bounding rectangular? And, if the pixel is
in the bounding rectangular and not in the ROI, then the mask will be
zero (invalid)? If the pixel is in the non-rectangular ROI, then the
mask will be non-zero (valid).

Best regards,
Yili Zhao