Issues with scaling information added to .tiff volume- tried ImageStacks and saving as .nrrd?

Hi everyone,

I am having a issue when trying to import/save TIFF data in a way that lets me add the scaling information. I have a single file ImageJ hyperstack .tiff that has my entire volume, with X-Y scale of 0.001282 microns/pixel and a Z-step size of 0.000641 microns. When I initially loaded it using add data, it opens without any issues, and I can easily scroll through all the slices as expected.

I tried to edit the volume to include the correct spacing/unit conversions, which in my case is (XYZ) like this in the volumes module:

Although that looked fine initially, when I saved the volume from there as a .nrrd, as I saw recommended here to preserve the 3D volume information, and opened the new .nrrd file, I completely lost the ability to see or scroll through the slices, and only had a single slice view. B I tried to import the data using the SlicerMorph ImageStacks extension like this instead, but ended up with a very strange looking volume that did not show up in the viewing planes:

Does anyone have any ideas on how to fix this, or what I am doing wrong? Any advice is greatly appreciated!

The units feature in Slicer may not be working well in all cases, and since Slicer is natively in mm, such small numbers may not be well preserved. You might be better off just keeping track of the scale yourself so that the numbers for spacing are around 1, especially if you are going to do calculations or measurements of the data.

Looks like cool data - is it some kind of cell or egg? Share some 3D renderings if you get a chance.

Your imported volume has only one slice for some reason. That is being displayed, there is nothing else to display hence the other two views are just a single line.

Review your import procedure to make sure all frames from your multiframe tiff is imported.

More accurately the z dimension has one. The fourth dimension seems to contain some information.

Thanks for your reply! Once I can figure out how to get it imported correctly, I’ll try keeping the scaling ratio but just using larger units (maybe like 1.282 x 1.282 x 0.641 mm) and convert myself afterwards to see if that help!

Thanks, they are micro-CT scans of a small crustacean called an ostracod! I’m segmenting out and modeling their brain anatomy! They look like eggs because their bodies have an outer carapace around it, kinda like a clamshell.

Thank you so much for your reply! Yes, I see that, but I don’t understand why that is happening. When I add the file with ā€œAdd Dataā€ normally, it seems to keep all the frames of the tiff. It is only after I add in the volume –> imaging space information and save it as a .nrrd, or try to use the ImageStacks import that this happens. Am I entering the spacing information wrong? I also don’t know what the 4th dimension would be doing here, as the file is just a Z-stack of X-Y images.

image

This input size is weird, since normally it would be something like 883x1425x839, you have an extra 1 in the middle. Maybe you can tweak this some way in imagej to flatten it back to 3D. You say it’s a ā€˜hyperstack’ and I’m not sure what that is but maybe you can make it a regular ā€˜stack’ instead. If this is a common kind of tiff file then if you can share an example maybe we can detect and fix it in ImageStacks.

Or, if you are handy in python I’m sure you can read the tiff into a numpy array and then make it a regular volume.

Hyperstack in fiji is for multichannel data as far as i know.

I suggest not skipping fiji and directly import thr multi frame tiff into Slicer.

1 Like

Also are you sure this is in micrometers (microns) as opposed to millimeter. 0.000641 would be like 0.641 nanometer. At that scale the length of your ostracod would be 0.5 microns, which doesn’t look right to me.

You are absolutely right :sweat_smile: I definitely meant to say 0.000641 mm or 0.641 microns! That’s what I get for trying to operate on no sleep. Thanks for catching my dumb mistake here!

I’ll give that a try now! Thanks again for all the help!