Login  Register

Re: Bug in 1.37j ?

Posted by Wayne Rasband on Feb 20, 2007; 4:54pm
URL: http://imagej.273.s1.nabble.com/Bug-in-1-37j-tp3700284p3700289.html

ImageJ 1.38k will fix a bug that caused getDirectory("image") to fail
on stacks created using Image>Stacks>Convert Images to Stack when all
the source images were loaded from the same directory.

-wayne

On Feb 20, 2007, at 7:02 AM, Christophe Leterrier wrote:

> I reformulate my first email with greater details.
>
>
> 1) Open an image (.tif file) (you can close other opened images to
> reduce the parameters).
>
> 2) Run the following macro :
>
> ---- begin code ----
>
> macro "test" {
>
> RepertoireSource=getDirectory("image");
> print(RepertoireSource);
>
> }
>
> ---- end code ----
>
> The log window will display the path to the open image (without the
> name of the image)
>
> 3) Close the image, open a stack by opening two images from the same
> folder and do a "Images to Stack" command (or "Import > Image
> Sequence" command, or "Import > Selected As Stack" command, or any
> command that generate a stack).
>
> 4) Run the test macro on the active stack. It will display a blank
> string, not the path from where the images were open. I can assure you
> that it retrieved the path from stacks with previous ImageJ versions.
>
> Christophe Leterrier
>
>
>
> Gabriel Landini a écrit :
>> On Tuesday 20 February 2007 11:42:48 Christophe Leterrier wrote:
>>> Sorry, my mistake.
>>>
>>> It was a typo. I'm using the latest 1.38j I got by downloading the
>>> jar
>>> file.
>> OK. What is the problem with the macro, can you post an example that
>> does not work?
>> Cheers,
>> G.
>