Beginner question: Resample scalar volume giving enlarged image size

Hi all, I used the ‘Resample Scalar Volume’ module to change the resolution of my dataset. However, the output volume has much higher dimensions than the original. How can I maintain the same image dimensions while only changing the voxel resolution? Thanks in advance!

You can’t. Image spacing and the dimensions of your original data defines a “volume in a physical world”. So unless you change that physical volume, you cannot change one without changing the other.

If your original image dimensions are 512x512x512 and resolution is 1.0x1.0x1.0mm, your volume represents a 51.2x51.2x51.2 cm cube. So if you decide to increase the spacing to 0.5x0.5x0.5, the dimensions of your volume needs to go up to 1024x1024x1024 to match the same physical volume. If you want your image dimensions to be 256x256x256, the spacing needs to be 2.0x2.0x2.0mm to map to the same physical volume.

You can of course arbitrarily change the spacing value to whatever you like, but then you also change the physical size of what your volume represents.

What are you trying to accomplish?

1 Like

Thanks for your reply. To clarify, I’m trying to normalize the resolution of my datasets. Since I’m calculating volume porosity from scans originally taken at different resolutions, I need to standardize them for accurate comparison. Does 3D Slicer offer any alternative methods for this specific task? TIA

If your scans have the correct spacing information, you do not have to do that. You will be measuring the porosity volume in the physical world dimensions. So no need to try to normalize for that. (provided that your scans are high enough resolution to capture the porosity in the first place).

1 Like

My specific worry is that smaller pores might be detected in the higher resolution scans but missed entirely in the lower resolution ones. For a fair comparison between samples, I believe I need consistent resolution (taking the lowest resolution as the common for all) to ensure that pores of the same physical size are either detected or missed consistently across all samples.

I think you should have done that during your imaging session, as opposed to after the fact.

Your lowest resolution should still be the lowest resolution to be able to detect pores. What if you end up degrading your data so that you can’t detect any difference? Are you sure your scan resolution has no confounding factor that will bias your results (e.g., big samples low resolution, small samples high resolution).

Anyways, these are things you need to decide for yourself.

If you want to resample data to a fixed resolution, you can easily do this by crop volume. E.g., if you want all your samples to have 50 micron and one scan is 30 micron, you will enter the scaling value of 50/30=1.6667 to the crop volume. Output volume will have 50 micron resolution.