Class AbstractImageSegmentationContainerOperation

    • Constructor Detail

      • AbstractImageSegmentationContainerOperation

        public AbstractImageSegmentationContainerOperation()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • minNumContainersRequired

        public abstract int minNumContainersRequired()
        Returns the minimum number of containers that are required for the operation.
        Returns:
        the number of containers that are required, <= 0 means no lower limit
      • maxNumContainersRequired

        public abstract int maxNumContainersRequired()
        Returns the maximum number of containers that are required for the operation.
        Returns:
        the number of containers that are required, <= 0 means no upper limit
      • generates

        public abstract Class generates()
        The type of data that is generated.
        Returns:
        the class
      • checkSameDimensions

        protected boolean checkSameDimensions​(ImageSegmentationContainer cont1,
                                              ImageSegmentationContainer cont2)
        Checks whether the two containers have the same dimensions.
        Parameters:
        cont1 - the first container
        cont2 - the second container
        Returns:
        true if the same dimensions
      • checkSameDimensions

        protected String checkSameDimensions​(ImageSegmentationContainer[] containers)
        Checks whether the containers have the same dimensions.
        Parameters:
        containers - the containers
        Returns:
        null if the same dimensions, other error message
      • check

        protected void check​(ImageSegmentationContainer[] containers)
        Checks the containers.

        Default implementation only ensures that containers are present.
        Parameters:
        containers - the containers to check
      • doProcess

        protected abstract Object doProcess​(ImageSegmentationContainer[] containers)
        Performs the actual processing of the containers.
        Parameters:
        containers - the containers to process
        Returns:
        the generated data
      • process

        public Object process​(ImageSegmentationContainer[] containers)
        Processes the containers.
        Parameters:
        containers - the containers to process
        Returns:
        the generated data