Load h5z image
maru
I want to load an H5Z image to Igor Pro. Does anyone know how to do that? I have tried the HDF5 Browser, but it does not support H5Z.
An example file is attached.
I want to load an H5Z image to Igor Pro. Does anyone know how to do that? I have tried the HDF5 Browser, but it does not support H5Z.
An example file is attached.
This file is just zipped, i.e., unzipping it will reveal a standard .h5 file which you can open with the usual tools. You can either use an external zip program (I used 7zip for example) or Igor's own UnzipFile command to do that. It should be no problem to also write a procedure to automatically do all this to load the file into Igor seamlessly.
July 29, 2024 at 07:04 pm - Permalink
Thank you very much. I did not realize that h5z means a zipped h5 file. I could load the data now.
July 29, 2024 at 07:37 pm - Permalink
I opened the h5 file and found the 2D image is stored in a 3D wave as 1x1062x1028. The image name is "data". Each layer has 1x1062 pixels.
Is there a good technique to redimension this 3D wave to a 2D (1062x1028)?
I understand I can use a for loop to assign the data layer by layer to a 2D but it takes a lot of time to process.
July 29, 2024 at 07:49 pm - Permalink
Use this command:
MatrixOp/O data_rot = transposeVol(data,4)
July 29, 2024 at 08:21 pm - Permalink
Thank you! It works perfectly.
July 29, 2024 at 08:59 pm - Permalink