Refactor Christian's MALPEM package to make it a MIRTK extension package which uses MIRTK commands instead of deprecated IRTK binaries.
MIRTK replacements
seg_maths (NiftySeg): mirtk.calculate_element_wise
-bin: use (current image>0) to binarise
seg_maths image.nii -bin mask.nii
mirtk.calculate_element_wise('image.nii', '-threshold-le', 0, '-pad', 0, '-set', 1, '-out', 'mask.nii')
-thr
-uthr
-mul
-add
-sub
-div
cl_create4D: mirtk.combine_images
cl_pairwiseSymDOF: mirtk.average_dofs
cl_apply_mask
mirtk.calculate_element_wise('scan.nii', '-mask', 'mask.nii', '-pad', -1, '-out', brain.nii')
convert: mirtk.convert_image
cl_extract_frame: mirtk.extract_image_volume
cl_averageDOFs: mirtk.average_dofs
dofinvert: mirtk.invert_dof
dofcombine: mirtk.compose_dofs
ireg: mirtk.register
transformation: mirtk.transform_image
display: Use mirtk.rendering.screenshots module for report generation.
Custom tools
cl_compute_volume: Consider adding this to core MIRTK applications
cl_gaussian_fusion
cl_malpem
cl_malpem4D
pincram-0.2.3_ireg.sh (see below)
scale.sh (see below)
External dependencies
N4 (also used by Draw-EM package, see here... though binary shouldn't be in repo)
Refactor Christian's MALPEM package to make it a MIRTK extension package which uses MIRTK commands instead of deprecated IRTK binaries.
MIRTK replacements
seg_maths(NiftySeg):mirtk.calculate_element_wise-bin: use (current image>0) to binariseseg_maths image.nii -bin mask.niimirtk.calculate_element_wise('image.nii', '-threshold-le', 0, '-pad', 0, '-set', 1, '-out', 'mask.nii')-thr-uthr-mul-add-sub-divcl_create4D:mirtk.combine_imagescl_pairwiseSymDOF:mirtk.average_dofscl_apply_maskmirtk.calculate_element_wise('scan.nii', '-mask', 'mask.nii', '-pad', -1, '-out', brain.nii')convert:mirtk.convert_imagecl_extract_frame:mirtk.extract_image_volumecl_averageDOFs:mirtk.average_dofsdofinvert:mirtk.invert_dofdofcombine:mirtk.compose_dofsireg:mirtk.registertransformation:mirtk.transform_imagedisplay: Usemirtk.rendering.screenshotsmodule for report generation.Custom tools
cl_compute_volume: Consider adding this to core MIRTK applicationscl_gaussian_fusioncl_malpemcl_malpem4Dpincram-0.2.3_ireg.sh(see below)scale.sh(see below)External dependencies
N4(also used by Draw-EM package, see here... though binary shouldn't be in repo)