Skip to content

Docker image missing required tool 'medcon' for 3D DICOM creation #37

Description

@libbrfish

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions