Class ExtractBackgroundDialog

    • Field Detail

      • m_ImageOperation

        protected adams.data.image.multiimageoperation.AbstractBufferedImageMultiImageOperation m_ImageOperation
        the multi image operation we're going to use
      • m_ButtonPreview

        protected adams.gui.core.BaseButton m_ButtonPreview
        preview button
      • m_ImagePanel

        protected adams.gui.visualization.image.ImagePanel m_ImagePanel
        Image Panel for displaying the preview
      • m_ImageSamplerSelectionPanel

        protected adams.gui.goe.GenericObjectEditorPanel m_ImageSamplerSelectionPanel
        editor panel
      • m_MultiImageOperationSelectionPanel

        protected adams.gui.goe.GenericObjectEditorPanel m_MultiImageOperationSelectionPanel
        image operation selection panel
      • m_CurrentFile

        protected adams.core.io.PlaceholderFile m_CurrentFile
        current file
      • m_Background

        protected BufferedImage m_Background
        the background image extracted
    • Constructor Detail

      • ExtractBackgroundDialog

        public ExtractBackgroundDialog​(Dialog owner)
        Creates a modeless dialog without a title with the specified Dialog as its owner.
        Parameters:
        owner - the owning dialog
      • ExtractBackgroundDialog

        public ExtractBackgroundDialog​(Dialog owner,
                                       Dialog.ModalityType modality)
        Creates a dialog with the specified owner Dialog and modality.
        Parameters:
        owner - the owning dialog
        modality - the type of modality
      • ExtractBackgroundDialog

        public ExtractBackgroundDialog​(Dialog owner,
                                       String title)
        Creates a modeless dialog with the specified title and with the specified owner dialog.
        Parameters:
        owner - the owning dialog
        title - the title of the dialog
      • ExtractBackgroundDialog

        public ExtractBackgroundDialog​(Dialog owner,
                                       String title,
                                       Dialog.ModalityType modality)
        Creates a dialog with the specified title, modality and the specified owner Dialog.
        Parameters:
        owner - the owning dialog
        title - the title of the dialog
        modality - the type of modality
      • ExtractBackgroundDialog

        public ExtractBackgroundDialog​(Frame owner)
        Creates a modeless dialog without a title with the specified Frame as its owner.
        Parameters:
        owner - the owning frame
      • ExtractBackgroundDialog

        public ExtractBackgroundDialog​(Frame owner,
                                       boolean modal)
        Creates a dialog with the specified owner Frame, modality and an empty title.
        Parameters:
        owner - the owning frame
        modal - whether the dialog is modal or not
      • ExtractBackgroundDialog

        public ExtractBackgroundDialog​(Frame owner,
                                       String title)
        Creates a modeless dialog with the specified title and with the specified owner frame.
        Parameters:
        owner - the owning frame
        title - the title of the dialog
      • ExtractBackgroundDialog

        public ExtractBackgroundDialog​(Frame owner,
                                       String title,
                                       boolean modal)
        Creates a dialog with the specified owner Frame, modality and title.
        Parameters:
        owner - the owning frame
        title - the title of the dialog
        modal - whether the dialog is modal or not
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class adams.gui.dialog.ApprovalDialog
      • setCurrentFile

        public void setCurrentFile​(adams.core.io.PlaceholderFile file)
        The current video file.
        Parameters:
        file - the file
      • getCurrentFile

        public adams.core.io.PlaceholderFile getCurrentFile()
        Returns the current video file.
        Returns:
        the file
      • extractBackground

        protected void extractBackground()
        Extracts the background from a given video
      • getBackgroundImage

        public BufferedImage getBackgroundImage()
        a getter for the background image
        Returns:
        the calculated background fro the current video
      • updateButtons

        protected void updateButtons()
        Updates the state of the buttons.