setMetadata(""): curious behavior

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

setMetadata(""): curious behavior

Simon Roussel
Hi,
I came across a strange behavior in ImageJ when using Metadatas.
Maybe it is not a bug but I mention it here in any case someone else
encounters this little problem.
If I erase metadatas in all slices of a stack:

for(i=1;i<=nSlices;i++) {
setSlice(i);
setMetadata("");
}

then save the stack and reopen it, the image is shifted by several pixels in
both x and y dimensions in its frame.
This does not occur if I write setMetadata(" "); (with a space between quotes).
It also occurs if I "propagate" Metadatas from one stack to another, with
getMetadata and setMetadata and the first stack has no Metadata.
...
Simon
Reply | Threaded
Open this post in threaded view
|

Re: setMetadata(""): curious behavior

Wayne Rasband
This bug, which was introduced in v1.38q, is fixed in v1.38s.

-wayne

On May 24, 2007, at 4:58 AM, Simon Roussel wrote:

> Hi,
> I came across a strange behavior in ImageJ when using Metadatas.
> Maybe it is not a bug but I mention it here in any case someone else
> encounters this little problem.
> If I erase metadatas in all slices of a stack:
>
> for(i=1;i<=nSlices;i++) {
> setSlice(i);
> setMetadata("");
> }
>
> then save the stack and reopen it, the image is shifted by several
> pixels in
> both x and y dimensions in its frame.
> This does not occur if I write setMetadata(" "); (with a space between
> quotes).
> It also occurs if I "propagate" Metadatas from one stack to another,
> with
> getMetadata and setMetadata and the first stack has no Metadata.
> ...
> Simon
>