Class ActionPaintToMask

All Implemented Interfaces:
ScriptableActionInterface

public class ActionPaintToMask extends ActionImageProcessorBase
A script action which converts all paint within an image to some type of mask image (short, binary, ubyte).
  • Field Details

    • MASK_DATA_TYPE

      private static final String MASK_DATA_TYPE
      The label to use for the mask output image data type parameter.
      See Also:
    • MASK_BINARY

      public static final String MASK_BINARY
      Indicates that a binary mask should be generated from an image's paint.
      See Also:
    • MASK_SHORT

      public static final String MASK_SHORT
      Indicates that a short mask should be generated from an image's paint.
      See Also:
    • MASK_UBYTE

      public static final String MASK_UBYTE
      Indicates that a unsigned byte mask should be generated from an image's paint.
      See Also:
    • recordingMaskType

      private String recordingMaskType
      The type of mask extracted from the paint (which should now be recorded).
  • Constructor Details

    • ActionPaintToMask

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

      public ActionPaintToMask(ModelImage inputImage, ModelImage resultImage, String maskType)
      Constructor used to record the PaintToMask script action line.
      Parameters:
      inputImage - The image whose paint was extracted to a mask image.
      resultImage - The result image generated.
      maskType - The type of the extracted mask image.
  • Method Details