Class AbstractImageSegmentationAnnotationWriter

    • Field Detail

      • m_SkipBaseImage

        protected boolean m_SkipBaseImage
        whether to skip writing base image.
    • Constructor Detail

      • AbstractImageSegmentationAnnotationWriter

        public AbstractImageSegmentationAnnotationWriter()
    • Method Detail

      • setSkipBaseImage

        public void setSkipBaseImage​(boolean value)
        Sets whether to skip writing the base image.
        Parameters:
        value - true if to skip
      • getSkipBaseImage

        public boolean getSkipBaseImage()
        Returns whether to skip writing the base image.
        Returns:
        true if to skip
      • skipBaseImageTipText

        public String skipBaseImageTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • check

        protected String check​(PlaceholderFile file,
                               ImageSegmentationContainer annotations)
        Hook method for performing checks before writing the data.
        Parameters:
        file - the file to check
        annotations - the annotations to write
        Returns:
        null if no errors, otherwise error message
      • writeBaseImage

        protected String writeBaseImage​(PlaceholderFile file,
                                        ImageSegmentationContainer annotations)
        Writes the base image unless skipped.
        Parameters:
        file - the filename for the base image
        annotations - the container with the layers and base image
        Returns:
        null if successfully written, otherwise error message
      • doWrite

        protected abstract String doWrite​(PlaceholderFile file,
                                          ImageSegmentationContainer annotations)
        Writes the image segmentation annotations.
        Parameters:
        file - the file to write to
        annotations - the annotations to write
        Returns:
        null if successfully written, otherwise error message