Login  Register

Re: 'Silent' client-side image processing with ImageJ

Posted by ctrueden on May 21, 2015; 7:55pm
URL: http://imagej.273.s1.nabble.com/Silent-client-side-image-processing-with-ImageJ-tp5012894p5012909.html

Hi Gareth,

What you want to do is more of a Javascript/web project. The ImageJ part
could certainly be done by running Fiji in headless mode on the server
side. But it is a non-trivial project because you have to integrate several
pieces together.

1) Get the ImageJ workflow working locally in headless mode.
http://imagej.net/Headless

2) Create a web page that behaves as you describe, triggering server-side
processing code that invokes ImageJ as a separate process, and waits for it
to complete. There are dozens of Javascript (and other language) web
frameworks to choose from.
http://en.wikipedia.org/wiki/Comparison_of_JavaScript_frameworks

You might also be interested in Volker Baecker's paper on a very similar
topic:

Baecker, V., and P. Travo. "Remote ImageJ-running macros on a distant
machine." *Proceedings of the ImageJ User and Developer Conference 2010*.

https://scholar.google.com/scholar?cluster=5003207782423199426&hl=en&as_sdt=0,50&sciodt=0,50

Regards,
Curtis

On Wed, May 20, 2015 at 10:21 PM, gj384 <[hidden email]> wrote:

> Hi there,
>
> I'm in the process of developing an ImageJ macro with the following basic
> workflow:
>
> 1. Open TIFF file
> 2. Calculate NDVI (using Ned Horning's PhotoMonitoring plugin)
> 3. Apply a custom LUT to the NDVI image
> 4. Add a few other elements to the map (legend, scale bar, north arrow etc)
> 5. Save the new NDVI image as a new TIFF file
>
> What I would really like to do is have the above process run 'silently'
> from
> a website - by this I mean the user would open the web page, log in etc,
> select a file from his local drives, fill in a few options and submit it
> for
> processing. The processing itself would take place on the client machine,
> and when it was complete the user would be presented with the final NDVI
> map
> which he could save and use.
>
> Before I go too far down the path of doing this with a macro and then
> attempting to turn it into a 'silent' program as described above, I just
> thought I would ask if anyone else has done anything like this before, and
> whether it would even be possible. I tried a few different searches and
> couldn't find anything that seemed relevant to my question. I may be going
> about this in completely the wrong way, and in fact this is highly likely
> as
> I'm very new to both Java and ImageJ.
>
> If anyone could provide any pointers or similar examples which might help
> I'd be extremely grateful!
>
> Thanks in advance
>
> Gareth Jones
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/Silent-client-side-image-processing-with-ImageJ-tp5012894.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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