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 ?? regards -- Donny |
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 |
thankyou ben
sorry that i didnt present the picture completely, i have been trying to devise a method to integrate or bring a couple of submenus from imagej into a plugin so that once called upon this plugin does the processes that i require on the images. for example i need to adjust the brightness and contrast, make the image smooth, enhance contrast, filters and so on. having been working on imagej for 5 days i realise that this can be done on java. at the same time i have no experience with java other than a basic understading of object oriented languages. i was wondering that since the things that i require are just submenu which are already available as options in imagej is there a way to call a set of 5 or more options together. or do use macros(to the level that i understand macros and plugins are almost similiar, and plugins once compiled can also appear as a subemenu in imagej, which is more preferred) i would be glad to have to some ways to do this in a simple way as i am a novice with both imagej and java. thanking you in advance. regards donny On Wed, Apr 8, 2009 at 3:40 PM, Ben Tupper <[hidden email]> 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 > -- Donny George |
In reply to this post by BenTupper
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 |
Free forum by Nabble | Edit this page |