Class ActionChangeResolutions

All Implemented Interfaces:
ScriptableActionInterface

public class ActionChangeResolutions extends ActionImageProcessorBase
A script action which changes the image's resolutions.
  • Field Details

    • IMAGE_RESOLUTIONS

      private static final String IMAGE_RESOLUTIONS
      The label to use for the parameter indicating the new resolutions.
      See Also:
    • RESOLUTIONS_ALL

      private static final String RESOLUTIONS_ALL
      The label to use for the parameter indicating whether to change all slices.
      See Also:
    • SLICE_INDEX

      private static final String SLICE_INDEX
      The label to use for the parameter indicating the index of the slice from which to set/retrieve the resolutions.
      See Also:
    • SLICE_THICKNESS

      private static final String SLICE_THICKNESS
      The label to use for the parameter indicating the slice thickness.
      See Also:
    • changeAll

      private boolean changeAll
      Whether or not to change all fileinfos/slices.
    • sliceIndex

      private int sliceIndex
      index of the slice from which to retrieve the resolutions.
    • sliceThickness

      private float sliceThickness
      the slice thickness.
  • Constructor Details

    • ActionChangeResolutions

      public ActionChangeResolutions()
      Constructor for the dynamic instantiation and execution of the script action.
    • ActionChangeResolutions

      public ActionChangeResolutions(ModelImage image, boolean change_all, int slice_index, float slice_thickness)
      Main constructor with parameters for changing the resolution/slice thickness.
      Parameters:
      image - DOCUMENT ME!
      change_all - change for all slices
      slice_index - index of slice from which to get resolution change
      slice_thickness - the slice thickness
  • Method Details