Hello Blandine,
I'm doing something similar at the moment. Instead of only using the jar
you should download the source code of imageJ from
http://rsb.info.nih.gov/ij/download.htmlYou can import it into eclipse without problems, using something like
"import from filesystem". There you got many examples.
Here is an example that does a convolution
Convolver.normalize = false;
Convolver convolver = new Convolver();
float[] kernel = {-1, -1, -1, 2, 2, 2, -1, -1, -1};
convolver.convolve(inputImage.getProcessor(), kernel, 3, 3);
inputImage.show();
The api documentation is at
http://rsb.info.nih.gov/ij/developer/api/index.htmlTo start you could have a look at what ImageProcessor and its subclasses
and ImagePlus can do.
Hope this helps,
Volker
Blandine Chanteloup wrote:
> Hello everybody,
>
> I'm using Eclipse to develop a software. I would like to use the
> ImageJ library ij.jar to process images but without using plugins.
> I've already tried to write code source using ImagePlus, ImageCanvas,
> ImageProcessor objects but I don't really know how to use them.
> Does anyone can send me some source code examples that aim to display
> images and manage simple process (brightness/contrast variation, ROI
> drawing ...) ??
>
> Thanks
>
> Blandine
>
--
passerelle antivirus du campus CNRS de Montpellier
--