Login  Register

Re: How to update the display after using batchMode

Posted by Avital Steinberg on Nov 25, 2014; 9:23am
URL: http://imagej.273.s1.nabble.com/How-to-update-the-display-after-using-batchMode-tp5010591p5010611.html

Thanks for your answer - I'm trying to do it in Java. There is no
setBatchMode function in the Java ImageJ API. However, there is a Batchmode
variable. I understood that accessing a field variable directly (without
using a get or set method) is considered a bad coding practice. I saw
various methods in the java ImageJ API such as addBatchModeImage, but I'm
not sure what it does,

Avital

On Mon, Nov 24, 2014 at 6:59 PM, Straatman, Kees (Dr.) <[hidden email]
> wrote:

> Dear Avital,
>
> I assume you run a macro so according to
> http://imagej.nih.gov/ij/developer/macro/functions.html#S you can use
> either
>
> setBatchMode("exit and display"):  Exits batch mode and displays all
> hidden images.
>
> or
>
> setBatchMode("show"): Displays the active hidden image, while batch mode
> remains in same state. Requires 1.48h.
>
> Best wishes
>
> Kees
>
>
> Dr Ir K.R. Straatman
> Senior Experimental Officer
> Advanced Imaging Facility
> Centre for Core Biotechnology Services
> University of Leicester
>
> http://www2.le.ac.uk/colleges/medbiopsych/facilities-and-services/cbs/lite/aif
>
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> Avital Steinberg
> Sent: 22 November 2014 15:34
> To: [hidden email]
> Subject: How to update the display after using batchMode
>
> Hi,
> I set batchMode equal to true in order to turn off the display. I would
> like to display the final processed image. I tried using
> img.updateAndDraw() to show the final image, but the image window didn't
> open. I also tried setting batchMode back to false, but that didn't work
> either.
>
> How can I display the final image?
>
> Thank you,
> Avital
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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