Re: boolean operator plugin
Posted by
Michael Schmid on
Apr 08, 2009; 1:58pm
URL: http://imagej.273.s1.nabble.com/boolean-operator-plugin-tp3693045p3693047.html
Hi Donny,
See also Process>Math>AND, OR, XOR. These are bitwise binary
operations, also available as methods of an ImageProcessor. They do
nothing with 32-bit (float) images.
Note that ip.invert() for 16 and 32-bit images depends on the current
display range (minimum and maximum, as you set it in
Image>Adjust>Brightness&Contrast), so it will usually result in
values different from xor with binary 1111111111111111 (16-bit) or
multiplication by -1 (float).
Michael
________________________________________________________________
On 8 Apr 2009, at 15:40, Ben Tupper wrote:
> On Apr 8, 2009, at 9:29 AM, Donny George wrote:
>
>> hello
>>
>> i have been extensively searching for a plugin with boolean
>> operators eg xor
>> so that can automatically invert my images and i have not been
>> successful
>> to find one. could any of you please be kind enough to show me a
>> pluging for
>> this purpose or are there none ??
>>
>>
>
> Hi,
>
> Why don't you use the simple built-in command...
>
> IJ.run("Invert");
>
> or the invert method to the ImageProcessor class...
>
> ImageProcessor ip = imp.getProcessor();
> ip.invert();
>
>
> Cheers,
> Ben