Article directory
I. Introduction
Recently learning the visualization drr and 3D cone of open3d, you need to import the .ply format of the 3D cone. The source file is in .nii.gz format, but mimics cannot import .nii.gz, so you need to use the slicer to convert .nii.gz Export to .dcm format. Then use mimics to export the .dcm to .ply format. This article is intended primarily as a personal note.
Two, steps
2.1.slicer converts .nii.gz format to .dcm format
Since .nii.gz cannot be directly imported into mimics, it is necessary to use the slicer as a transfer station to import .nii.gz into a .dcm file. Four .nii.gz files need to be imported into one .dcm file.
2.1.1 Import .nii.gz file
Open the slicer, import four .nii.gz files, and click ok.
2.1.2. Visual rendering
Here we select Volume Rendering in the Modules column to look at the file, and you can see the four files I imported here (you need to select each file in the Volume column to open the "eye" button to see it)
2.1.3. Create a new segmentation
Also select Segmentations in Modules , and then select create new segmentation in Activate segmentation ,
2.1.4. Add to segment
After clicking create segmentation, a pen symbol will appear. After clicking, you will get the following interface, and you can start adding. Select the file in the master volume and click Add .
Then select Threshold (just below Add, next to it).
Slide to the bottom again, pull the progress bar to the far right, and click apply . In this way, a file is added, and then the rest can be imported, and the operation is the same.
Add it like this
2.1.5. Export as .dcm file
Then select Modules as Data.
Click the right button of Segmenation to export as Dicom.
Select the file to export.
The above completes the process of importing multiple .nii.gz into a single .dicom.
2.2.Mimics imports .dicom to .ply format
The following needs to be exported to .ply format with Mimics
2.2.1. Loading .dicom files
Open mimics, click file, click New Project wiza, select the dicom file to be imported, and click next to import.
This is how it loads.
2.2.2. Adjust thresholding
Set min to 1 and click apply.
2.2.3.calculate
Select Green on the right and right-click Calulate 3D.
A 3D view will be generated in the lower right window.
2.2.4. Export ply file
Select file->export->PLY
Select 3D, click the 3D file to be exported, click add, and select the folder location to be exported.
MxyXqLP-1687942076973)]
Select 3D, click the 3D file to be exported, click add, and select the folder location to be exported.
[External link image transfer...(img-MYOs1T3g-1687942076974)]
The above is the whole process, and I finally wrote down the process, hoping to help friends in need.
If the picture is missing, you can check it on my personal blog
my personal blog