Posted by
pcloetens on
Oct 30, 2005; 6:35pm
URL: http://imagej.273.s1.nabble.com/Re-External-Viewer-tp3704573.html
Hello,
I was looking into using ImageJ as an external viewer for Octave and found
some discussions in the past on this topic. I wonder if something has been
done since then. Wayne proposed as solution to save the images with Octave
in a directory where ImageJ periodically looks for new files. This seems a
little restrictive. Probably you want faster display and also call ImageJ
commands from octave or vice versa; get some mouse clicking entries from
ImageJ into Octave, ... Isn't this rather something to be solved with
sockets.
Any suggestions would be welcome.
Peter
On Mon, 24 Nov 2003 09:54:21 -0800, P. Daniel Tyreus <
[hidden email]>
wrote:
>Hello Mark -
>
>From my understanding, what you are trying to do is send messages to the
>running ImageJ program do perform tasks such as displaying images. As you
>mentioned, it is fairly easy to command line script the startup of ImageJ
>with an image window. However, talking to ImageJ while running is not quite
>as easy. In order to be able to do so, ImageJ would need to be running some
>type of server that would be listening for communication over a chosen
>protocol. Octave would then be the client that made requests.
>
>One possible way to do this is using Servlets. There is an example at
>
http://rsb.info.nih.gov:8080/index.html. You may be able to modify this
code
>to do something similar to what you want. You will also need a servlet
>engine such as Tomcat.
>
>The other, perhaps better but more complicated, ways of doing this are with
>SOAP messaging or RMI. Wayne will correct me if I'm wrong, but I don't
think
>either of those are implemented in ImageJ. A word of warning, though, both
>are complicated, they may require use of Java 2, and writing code to make
>Octave talk to ImageJ in this way probably won't be worth your time unless
>you are already a Java expert.
>
>Wayne usually knows of simpler ways of doing things with ImageJ than I do,
>but unless he responds with better ideas, I think these are the options you
>are stuck with.
>
>Daniel
>
[hidden email]
>
>-----Original Message-----
>From: ImageJ Interest Group [mailto:
[hidden email]]On Behalf Of
>Mark H. Bowden
>Sent: Monday, November 24, 2003 6:42 AM
>To:
[hidden email]
>Subject: External Viewer
>
>
>I just joined the list and never saw my initial post come out. My
>apologies if this is a duplicate.
>
>I want to use ImageJ as an external viewer for Octave. I can do that now
>by having Octave specify the image file on the command line that is
>passed to system(). However, this will bring up a separate ImageJ
>process for each image displayed. Is it possible for a separate process
>to request an existing ImageJ process to display additional images? I
>couldn't find anything on this in the archives.
>
>Thanks,
>-mark
>_______________________________________________
>Mark H. Bowden
>Optical Sciences Corporation
>=========================================================================