Skip to content

ENH: Added labelmap conversion to Volumes module

  1. Changed LabelMap checkbox to Volume type label showing the node tag without the Volume postfix (as scalar volume has the tag "Volume", "Scalar" is shown instead of empty string)
  2. Add extra section into Volumes module, because a. Label volume conversion cannot be added in the volume info widget due to scope issues (volumes logic not accessible from MRML widgets) b. Conversion operation doesn't fit into the idea of "volume info"
  3. Reogranized labelmap creation functions in volumes logic. Moved and corrected the body of FillLabelVolumeFromTemplate to CreateLabelVolumeFromVolume. Call the new function from CreateAndAddLabelVolume and FillLabelVolumeFromTemplate. Correction in CreateLabelVolumeFromVolume includes deep copy of the image data instead of keeping a floating threshold filter and setting connection (besides it seems to be unstable, it also did not work, dimensions of the volume were zeroes)
  4. Removed margin from volumes info widget to make volumes module look more uniform

Merge request reports

Loading