Login  Register

Re: kawa script using mpicbg_-1.0.2.jar -> ERROR

Posted by Saalfeld, Stephan on Oct 19, 2015; 5:27pm
URL: http://imagej.273.s1.nabble.com/kawa-script-using-mpicbg-1-0-2-jar-ERROR-tp5014635p5014682.html

Hi David,

> (1) "Linear Stack Alignment with SIFT" now works, _but_, iff I display images on
> the screen, which is required to call "Images to Stack":
>
> (a) I want to open images in memory only and built the stack myself,
> example(s) [preferably kawa/clojure of course since I use kawa]
> welcome;
>
> (b) "Linear Stack Alignment with SIFT" does not expect/accept a stack
> argument, I would need, if possible, that you implement a version
> that accept a stack instead of 'magically' grab the one fiji creates
> when calling "Images to Stack" time:
>
> would that be possible?
>

No, it is unnecessary because the ImageJ and mpicbg API have lots of
public methods that allow fine grained access to all its functionality.
You will have to read about and learn it and then you will realize that
both (1) and (2) are strange things to ask for ;).

E.g., if you want to keep doing what you propose which is clearly the
result of not having spent sufficient time with it, you could call

http://rsb.info.nih.gov/ij/developer/api/ij/IJ.html#run-ij.ImagePlus-java.lang.String-java.lang.String-

as making an ImagePlus from an ImageStack is as simple as

http://rsb.info.nih.gov/ij/developer/api/ij/ImagePlus.html#ImagePlus-java.lang.String-ij.ImageStack-

and  
 
> As you understood already, it is extremely important for us, I should say mandatory
> actually, that absolutely everything happens in memory and no windows  is/needs to
> be opened during the execution of the script.
>

everything you're talking about happens in memory.  If you do not want
UI, use the API directly instead of plugins whose sole purpose is to
provide a UI to some functions.

Good luck,
Stephan

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