Login  Register

Using circular ROIs with XOR

Posted by B.W. Basheer on Mar 25, 2019; 11:13pm
URL: http://imagej.273.s1.nabble.com/Using-circular-ROIs-with-XOR-tp5021929.html

Hello,

I'm new to ImageJ.  Am trying to use xor on the pixel values within the bounds of a circular ROI.  The Javadoc documentation says XOR operates on all pixels in the image or an ROI.  In my tests, the XOR method is operating without regard for the boundaries of the circular ROI.

By way of example, I'm trying it this way:

image.setRoi(new OvalRoi(0,0,2950,2950));
image.getChannelProcessor().xor(0xffff);

Thanks for any suggestions.  It would be greatly appreciated.

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