Hi Everyone, I’m new to 3D slicer. I wanted to resample a scanned data set which is in png format. After resampling, when I tried to save the data set in my folder in png format, only the first slice is saved there. What has gone wrong there? I want to get the full data set. Here I attach how my data appear in the data tree and the settings I gave while saving.
TIA.
If you really need it as a stack of PNGs you can use the Screen Capture module.
Slicer does not save volume objects in 2D formats. Is there a reason you want your data in 2D format? If you want to do that Screen Capture is the only option but then you will loose the resolution information you had before since the screen capture is at the resolution of your screen, particularly given that you resampled your data.
Tell us what you want to do more?
Hi, Thanks again. Later I tried with a python script and got it solved, but the images were in tif format. Anyway, I will try the screen capture module next time. Actually my requirement is, to resample the data to change the resolution. Then I’m going to evaluate the porosity of the volume, using CTAN.
Thanks
Thank you. I will try this.
If you are using the Bruker’s platform to this, you should probably use their tools for your convenience. Bruker hsa a tool called Dataviewer
to allow you to reorient and resample your samples. It should preserve all the metadata…
Yes, I work with Bruker’s platform and have used Dataviewer for orientation registration. However, I couldn’t locate any resolution adjustment options there. That’s why I’m looking into 3D Slicer specifically to modify resolution. My samples were originally scanned at different resolutions, and I need to standardize them to a single resolution for proper comparison. Thanks.
If you are trying to rescale (and reorient) your data a fixed resolution, then you should probably use automated registration, or a few landmarks (if the sample positions are too different for automated registration to work).
here is how you can do:
- Use the interaction widget to orient one sample to the position for all your samples to be.
- Use the Crop Volume to resample to the resolution you want this to be in.
- Use the automated image registration modules in Slicer (e.g., Brainsfit, or Elastix, or ANTs) to rigidly register every volume against this reference (including the original data of the reference).
The outputs will be in the same orientation, and will have the exact image resolution as your reference.
It is possible that your scan orientations are too different for automated registration algorithms to do it for you. This is where landmarks come in. If you annotate 4 landmarks in every sample such that they mark top/bottom, right/left axis approximately, you can then use that transformation to initialize the automatic registration and will get very good results.
We are actually just finished prototyping an extension to do all of this in a very streamlined way. it is functional (as far as we tested) but it is not in the extension catalogue. If you are OK with some elbow grease I am happy to walk you through the process.
GitHub - SlicerMorph/SlicerANTsPy: module and GUI for antspy is the extension.
Many Thanks. I’ll try it out.