Login  Register

Re: Help to beginner

Posted by Adrian Daerr on Jun 13, 2007; 2:08pm
URL: http://imagej.273.s1.nabble.com/Help-to-beginner-tp3699140p3699141.html

> 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/