Virtual stacks lose labels on save

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

Virtual stacks lose labels on save

Luke Stuyvenberg
Hello all,

I've noticed a bug in FileSaver.java:156 (and consequently line 170): when checking for in-place saving, the FileInfo object is named 'fi', which overshadows the 'fi' member variable of the class ('this.fi') -- thus, on line 170, the slice labels are being saved to the ImagePlus' copy of the FileInfo, and *not* to the FileInfo used for image encoding. Consequently, any virtual stacks saved (i.e. through IJ.save) will lose their labels before they make it to disk.


Thanks for your attention,


Luke Stuyvenberg

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Virtual stacks lose labels on save

Rasband, Wayne (NIH/NIMH) [E]
On Dec 14, 2012, at 5:29 PM, Luke Stuyvenberg wrote:

> Hello all,
>
> I've noticed a bug in FileSaver.java:156 (and consequently line 170): when checking for in-place saving, the FileInfo object is named 'fi', which overshadows the 'fi' member variable of the class ('this.fi') -- thus, on line 170, the slice labels are being saved to the ImagePlus' copy of the FileInfo, and *not* to the FileInfo used for image encoding. Consequently, any virtual stacks saved (i.e. through IJ.save) will lose their labels before they make it to disk.

This bug is fixed in the ImageJ 1.47h daily build.

-wayne

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