Class ImageProcessorSubPanel

    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • getOriginal

        public ImagePanel getOriginal()
        Returns the panel for the original image.
        Returns:
        the panel
      • getProcessed

        public ImagePanel getProcessed()
        Returns the panel for the original image.
        Returns:
        the panel
      • load

        public boolean load​(File file)
        Opens the file.
        Parameters:
        file - the file to open
        Returns:
        true if successfully read
      • load

        public boolean load​(File file,
                            ImageReader reader)
        Opens the file with the specified image reader.
        Parameters:
        file - the file to open
        reader - the reader to use, null for auto-detection
        Returns:
        true if successfully read
      • getCurrentFile

        public File getCurrentFile()
        Returns the current filename.
        Returns:
        the current filename, can be null
      • getFlowPanel

        public FlowPanel getFlowPanel()
        Returns the flow panel.
        Returns:
        the panel
      • runFlow

        public String runFlow()
        Runs the flow.
        Returns:
        null if successful, otherwise error message
      • addImageOverlay

        public void addImageOverlay​(boolean original,
                                    ImageOverlay overlay)
        Adds the overlay.
        Parameters:
        original - whether to add the overlay in the original image or the processed one
      • clearImageOverlays

        public void clearImageOverlays​(boolean original)
        Removes all overlays.
        Parameters:
        original - whether to clear the overlays in the original image or the processed one
      • imageOverlays

        public Iterator<ImageOverlay> imageOverlays​(boolean original)
        Returns iterator over current overlays.
        Parameters:
        original - whether to locate objects in the original image or the processed one
        Returns:
        the iterator
      • locateObjects

        public void locateObjects​(boolean original,
                                  AbstractObjectLocator locator)
        Uses the specified object locator.
        Parameters:
        original - whether to locate objects in the original image or the processed one
        locator - the locator to use
      • setScale

        public void setScale​(boolean original,
                             double value)
        Sets the scaling factor (0-16). Use -1 to fit inside panel.
        Parameters:
        original - if true setting the scale for the original, otherwise for the processed image
        value - the scaling factor
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.
        Specified by:
        cleanUp in interface CleanUpHandler