-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
Description:
It appears that the current niftymic Docker image does not include medcon. This tool is required by one of the scripts for combining 2D DICOM slices into a 3D DICOM file while maintaining correct image orientation.
Details:
In file niftymic/application/nifti2dicom.py medcon is used:
path_to_output = os.path.join(args.dir_output, "%s.dcm" % args.label)
# Combine set of 2D DICOM slices to form 3D DICOM image
# (image orientation stays correct)
ph.print_title("Combine set of 2D DICOM slices to form 3D DICOM image")
cmd_args = ["medcon"]
cmd_args.append("-f '%s'/*.dcm" % dir_output_2d_slices)
cmd_args.append("-o '%s'" % path_to_output)
cmd_args.append("-c dicom")
cmd_args.append("-stack3d")
cmd_args.append("-n")
cmd_args.append("-qc")
cmd_args.append("-w")
ph.execute_command(" ".join(cmd_args))Impact:
Without medcon in the Docker image, this part of the pipeline fails, preventing correct generation of 3D DICOM images from 2D slices.
Request:
Please consider adding medcon to the Docker image.
Metadata
Metadata
Assignees
Labels
No labels