Skip to content

Refactoring #1

@schuhschuh

Description

@schuhschuh

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions