Re: Selecting images without activating them
Posted by
ctrueden on
Dec 15, 2006; 5:36pm
URL: http://imagej.273.s1.nabble.com/Selecting-images-without-activating-them-tp3700808p3700809.html
Hi Gareth,
Did you try setBatchMode(true) at the start of your macro?
-Curtis
On 12/15/06, Dr Gareth Rees <
[hidden email]> wrote:
> Dear imagers,
>
> Please excuse a very basic question, but is there a way to select an
> image without activating it, like the command ChoosePic in NIH Image?
> I have a lot of NIHI macros that I really ought to convert to ImageJ
> (since Apple is no longer supporting the Classic environment), and
> many of these involve frequently switching between several open
> images. All I know how to do in ImageJ is SelectImage, which
> activates the image. Using this, even a very modest macro that simply
> switches between two open images and back again for each pixel in
> turn, takes an impossibly long time (hours) to run, whereas I can run
> it in seconds in NIH Image, so I feel I must be doing something
> stupid or missing something obvious. AutoUpdate(false) doesn't make
> any difference...
>
> Any statements of the obvious (to you) would be appreciated by me!
>
> Gareth
>
>
>
>
> Dr W G Rees
> Scott Polar Research Institute
> University of Cambridge
> Lensfield Road
> Cambridge CB2 1ER
> United Kingdom
> T. +44 1223 336540/336575 F. +44 1223 336549
>