0

I have a question about the conversion of images.

In segmentation tasks of medical images, if DICOM files are converted to NifTI files with dicom2nifti, discrepancies could occur between original images and annotation labels.

How to correct these discrepancies?? Thanks in advance.

I tried:

label = scipy.io.loadmat("./annotation_label")
label = label["Mask"]
label_nif = nib.nifti1.Nifti1Image(label, affine=None)

I know affine is required, but how to calculate the affine which converts DICOM to NifTI?

I converted the original DICOM files to NIfTI files, and the original annotation label (numpy file) to NifTI files. Then, discrepancies occurred...

kodhoi
  • 23
  • 5

0 Answers0