<div dir="ltr">Dear <span class="">ImageJ</span> Dev community,<br>
<br>
I would like to ask if ImageJ2 can be used as a library for developing stand alone applications, (not only for plugins)?<br><br>
What I would like to use it is:<br>
- reading, writing, accessing pixel values of multidimensional (multispectral) images,<br>
- FFT, histograms, using the Filters (as they are in the <span class="">ImageJ</span> app)<br>
- Addition, multiplication etc. of image pixel values as they are in the Image Calculator methods (add, divide, multiply...)<br>
<br>
What I tried so far is using the .jars from the <span class="">ImageJ</span>.app and referenced them as external libraries from my project. But on the very beginning when I try creating the <span class="">ImageJ</span> object <br>
I keep receiving error messages related to some of the Services, for example:<br>
<br>
java.lang.UnsupportedOperationException: Cannot instantiate more than one DefaultLegacyService at net.<span class="">imagej</span>.legacy.DefaultLegacyService.checkInstance(DefaultLegacyService.java:514)<br><div id=":1cw" class="">
and<br>
Invalid service: net.<span class="">imagej</span>.legacy.DefaultLegacyService<br>
at org.scijava.service.ServiceHelper.createExactService(ServiceHelper.java:279)<br>
<br>
So I was wondering if I can use <span class="">ImageJ2</span> as an image processing library for my proejct...<br>
<br>
If it is meant to be used as an image processing library which can be referenced from other projects? If yes, could you send me some links I
can read how to properly set it up and reference the necessary libraries?<br><br>
Thanks a lot in advance!<br>
<br>
Greetings,<br>
Vera<br>
</div><br></div>