Login  Register

ImageJ2 used for developing stand alone app?

Posted by Vera Andrejchenko on Jul 30, 2014; 3:42pm
URL: http://imagej.273.s1.nabble.com/ImageJ2-used-for-developing-stand-alone-app-tp5008980.html

Dear ImageJ community,

I would like to ask if ImageJ2 can be used as a library for developing stand alone applications, (not only for plugins)?
What I would like to use it is for is for instance:
- reading, writing, accessing pixel values of multidimensional (multispectral) images,
- FFT, histograms, using the Filters (as they are in the ImageJ app)
- Addition, multiplication etc. of image pixel values as they are in the Image Calculator methods (add, divide, multiply...)

What I tried so far is using the .jars from the ImageJ.app and referenced them as external libraries from my project.
But I keep receive error messages related to some of the Services, for example:
When I try the ImageJ class for instating and object and trying to read and show an image I receive:

 java.lang.UnsupportedOperationException: Cannot instantiate more than one DefaultLegacyService
        at net.imagej.legacy.DefaultLegacyService.checkInstance(DefaultLegacyService.java:514)
and
Invalid service: net.imagej.legacy.DefaultLegacyService
        at org.scijava.service.ServiceHelper.createExactService(ServiceHelper.java:279)

So I was wondering if I can use ImageJ as an image processing library for my project...

If it is meant for that purposes as well, could you send me some links I can read some how to install/set it up/configure and some getting started tutorials? (For instance reading and displaying an image).

Thanks a lot in advance!

Greetings,
Vera




--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html