2023-06-27-mimics, slicer software converts .nii.gz to .ply format

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.

image-20230627210718894

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)

image-20230627211029877

2.1.3. Create a new segmentation

Also select Segmentations in Modules , and then select create new segmentation in Activate segmentation ,

image-20230627211509151

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 .

image-20230627211956591

Then select Threshold (just below Add, next to it).

image-20230627212155178

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.

image-20230627212539230

Add it like this

image-20230627212926614

2.1.5. Export as .dcm file

Then select Modules as Data.

image-20230627213057018

Click the right button of Segmenation to export as Dicom.

image-20230627213157331

Select the file to export.

image-20230627213321576

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.

image-20230627213926646

This is how it loads.

image-20230627214108801

2.2.2. Adjust thresholding

Set min to 1 and click apply.

image-20230627214414481

2.2.3.calculate

Select Green on the right and right-click Calulate 3D.

image-20230627214516770

A 3D view will be generated in the lower right window.

image-20230627214731647

2.2.4. Export ply file

Select file->export->PLY

image-20230627214853404

Select 3D, click the 3D file to be exported, click add, and select the folder location to be exported.

image-20230627215128695

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

Guess you like

Origin blog.csdn.net/SL1029_/article/details/131440544