Login  Register

Re: accessing the ImageStack created by Linear Stack Alignment with SIFT?

Posted by Kenneth Sloan-2 on Mar 05, 2018; 8:05pm
URL: http://imagej.273.s1.nabble.com/accessing-the-ImageStack-created-by-Linear-Stack-Alignment-with-SIFT-tp5020207p5020213.html

Thank you for the prompt response.

Does "run" set the "current image"?  I see that WindowManager offers methods such as:

 getActiveWindow()
 getCurrentImage()


Next on my list would be:

  getImageTitles()

finding one starting with "aligned", and then

  getImage(title)


The best bet seems to be "getActiveWindow()" or "getCurrentImage()" - since I think the top window is the aligned stack, on completion.  This might be confounded by the log window showing progress.

Searching titles has the flaw that a careless user may leave old windows laying about, which would confuse things.

I think I'll experiment with these before trying to modify someone else's plugin.
--
Kenneth Sloan
[hidden email]
Vision is the art of seeing what is invisible to others.





> On 5 Mar 2018, at 13:18 , Curtis Rueden <[hidden email]> wrote:
>
> Hi Kenneth,
>
> The plugin source code is here:
> https://github.com/axtimwalde/mpicbg/blob/2f411b380cffb580e35410b6517ffeb2c72489e2/mpicbg_/src/main/java/SIFT_Align.java
>
> The run method does many things; the next level down programmatically is
> probably the SIFT class here:
> https://github.com/axtimwalde/mpicbg/blob/2f411b380cffb580e35410b6517ffeb2c72489e2/mpicbg/src/main/java/mpicbg/ij/SIFT.java
>
> But it is quite low level. It may be simplest to copy/paste/edit code from
> the plugin.
>
> And of course, PRs welcome if you want to improve the modularity.
>
> Regards,
> Curtis
>
> --
> Curtis Rueden
> LOCI software architect - https://loci.wisc.edu/software
> ImageJ2 lead, Fiji maintainer - https://imagej.net/User:Rueden
> Did you know ImageJ has a forum? http://forum.imagej.net/

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