Convert multiple nifti images to dicom rtstruct got a segmentation fault with plastimatch version 1.6.2 (5130)
Hello,
The 2019-nii-label directory has multiple nifti images, such as Cord.nii.gz, Lung.nii.gz, etc. The values in each image are only 0(background) or 1(organ), and there are corresponding dicom ct files in the 2019-ct directory. I want to output the dicom rtstruct file in directory 2019-rs.
Then I executed the following command on my Ubuntu 16.04 x64:
foo@bar:~$ plastimatch convert --input-prefix ./2019-nii-label/ --referenced-ct ./2019-ct/ --output-dicom ./2019-rs/
Loading RDD
Best chunck:
Slices 0 to 83 from (0 to 83)
Z_loc = -575.500000 -160.500000
Slice spacing = 5.000000
Samp_per_pix: 1
Phot_interp: MONOCHROME2
Bits_alloc: 16
Bits_stored: 12
High_bit: 11
Pixel_rep: 0
S/I = 1.000000/-1024.000000
Image looks ok. Try to load.
Loading RDD complete
Setting PIH from RDD
PIH is:
Origin = -251.5 -134.5 -575.5
Size = 512 512 84
Spacing = 0.986328 0.986328 5
Direction = 1 0 0 0 1 0 0 0 1
Rt_study_warp: Convert ss_img to cxt.
Rt_study_warp: Apply dicom_dir.
Rt_study_warp: Set geometry from PIH.
Rt_study_warp: Set rasterization geometry.
Segmentation fault (core dumped)
How to deal with the error above? Thanks!
PS: Attachments have a size limit so I split the ct into two directories: 2019-ct1.zip 2019-ct2.zip Cord.nii.gz Lung.nii.gz