http://imagej.273.s1.nabble.com/Fiji-compressed-mhd-file-not-working-tp5018786p5018790.html
Thanks for the bug report. I filed an issue in the relevant component on
> Hi,
>
> In FIJI, I find the capability to use .mhd files, which is useful for me.
> However I tried saving an (8-bt binary thresholded) image in compressed
> form , and subsequently opening the file only gives noise or else nothing
> at all.
>
> However, the file that is written is properly read by other application
> (using ITK in c++) , and the compressed .mhd file that was created by the
> ITK application can be read in the Fiji .
>
>
> In trying to replicated at a smaller scale (original file is 250 Mb ->
> compressed 9 Mb) I found that sometimes it just silently fails to read the
> file.
>
> I updated Fiji this morning and it is running on Linux (centOs) platform .
>
> Here is a macro that creates an image to replicate two behaviour modes:
>
> __________________________________
>
> newImage("Untitled", "8-bit white", 150, 150, 100);
> makeOval(28, 27, 33, 45);
> setBackgroundColor(0, 0, 0);
> run("Clear", "stack");
> run("MHD/MHA compressed ...", "save=blob_compressed.mhd");
>
> run("Add Specified Noise...", "stack standard=25");
> run("MHD/MHA compressed ...", "save=blob_noise_compressed.mhd");
> run("Close All");
>
>
> open("blob_compressed.mhd");
> getBoolean("Did any file get opened?");
> open("blob_noise_compressed.mhd");
> getBoolean("Does this look like the original image?");
> _______________________________
>
>
>
>
>
> Dr. Robert C. Atwood
> Diamond Light Source
> and
> Manchester X-ray Imaging Facility (University of Manchester)
> Rm G15, Research Complex at Harwell
> Harwell Science and Innovation Campous, Didcot, OX11 0FA
> Tel: +44 1235 778 670
> www.diamond.ac.uk
> www.rc-harwell.ac.uk
> www.mxif.manchester.ac.uk
>
>
> --
> This e-mail and any attachments may contain confidential, copyright and or
> privileged material, and are for the use of the intended addressee only. If
> you are not the intended addressee or an authorised recipient of the
> addressee please notify us of receipt by returning the e-mail and do not
> use, copy, retain, distribute or disclose the information in or attached to
> the e-mail.
> Any opinions expressed within this e-mail are those of the individual and
> not necessarily of Diamond Light Source Ltd.
> Diamond Light Source Ltd. cannot guarantee that this e-mail or any
> attachments are free from viruses and we cannot accept liability for any
> damage which you may sustain as a result of software viruses which may be
> transmitted in or with the message.
> Diamond Light Source Limited (company no. 4375679). Registered in England
> and Wales with its registered office at Diamond House, Harwell Science and
> Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>