Login  Register

Re: Progress bar during resizing

Posted by Nicolas Brouilly on Apr 15, 2015; 4:10pm
URL: http://imagej.273.s1.nabble.com/Progress-bar-during-resizing-tp5012480p5012484.html

Hi Michael !

Thank you for your clarifications !

Is there any chance that, in a macro, one can display a "progress bar"
in the log window using parallel threads ? Or any other way to get an
idea about the progress of a resizing step in a macro ?

Thanks !

Nico

On 15/04/2015 17:13, Michael Schmid wrote:

> Hi Nico,
>
> ImageJ shows the progress bar only for some operations, mainly for those that are slow with more "typical" image sizes (0.1-10 Mpixels). Your output image has 100 Mpxl.
>
> Resizing is done at a rather low level (ImageProcessor) and it is just a small part of the operation in several other commands (e.g. "Make Montage"), so adding a progress bar for resizing would give a meaningless (or flickering) progress bar for other operations that use resizing. So ImageJ just shows a status message when resizing, counting the images that have to be resized (for the case that a stack is resized). Unfortunately, that status message goes away as soon as the mouse is moved over an image, it yields for the coordinates & value readout.
>
> Michael
> ________________________________________________________________
> On Apr 15, 2015, at 16:17, Nicolas Brouilly wrote:
>
>> Dear all,
>>
>> How can I get the progress bar to appear during a resizing manipulation ?
>>
>> Let say that you have a 1 000 x 1 000 px image and want to resize it to 10 000 x 10 000 px. It takes more than a second (20 seconds on my system), though the progress bar does not appear.
>>
>> Is there a limited list of functions for which the progress bar is supposed to appear ?
>>
>> Thanks !
>>
>> Nico
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--

Nicolas BROUILLY, PhD

Zerial lab,

Max Planck Institute of Molecular

Cell Biology and Genetics

Pfotenhauerstr. 108

01307 Dresden

phone: +49 351 210-2489

e-mail: [hidden email]


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