Help to beginner

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Help to beginner

kaito-2
Hi to all

i am sorry for the simple question.

i am writing a simple plug in , it must:
1) load image from imagej folder
2) display image
3) invert image
4) show inverted image in the new window

i do not udstand this :
i must use 2 ImageProcessor and 1 ImagePlus for display
or the opposite ?

whi i can not make a new instance of ImageProcessor ?

thank you
Reply | Threaded
Open this post in threaded view
|

Re: Help to beginner

Adrian Daerr
> i am writing a simple plug in , it must:
> 1) load image from imagej folder
> 2) display image
> 3) invert image
> 4) show inverted image in the new window
>
> i do not udstand this :
> i must use 2 ImageProcessor and 1 ImagePlus for display
> or the opposite ?

Two of each I'd say.
What you want is however most easily achieved by using the macro recorder
in the Plugins->Macros menu, duplicating and inverting the image. You can
then convert your macro into a plugin if you want to.

> whi i can not make a new instance of ImageProcessor ?

Why can't you ? I can ;-)

Check the examples in the plugin section and read their Java source!

regards,
Adrian
--
http://www.msc.univ-paris-diderot.fr/~daerr/