Posted by
Dr Gareth Rees on
Dec 15, 2006; 8:07pm
URL: http://imagej.273.s1.nabble.com/Selecting-images-without-activating-them-tp3700808p3700810.html
Thank you Curtis!
That was definitely the magic spell I was looking for - the same
(admittedly pointless) task now runs in less than 0.5 s. I shall now spend
a happy weekend recoding macros from NIH Image to Image J, and feel more
relaxed about the demise of the Apple Classic environment.
Gareth
On Dec 15 2006, Curtis Rueden wrote:
>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
>>
>
--
Dr W Gareth Rees
Polar Landscape and Remote Sensing Group
Scott Polar Research Institute, University of Cambridge
T. (+44) 1223 336540/336575 F. (+44) 1223 336549