Class BaselineFilter


public class BaselineFilter extends Filter
This is a Filter that subtracts a baseline image from the source image.
Version:
1.0
Author:
Douglas Brown
  • Constructor Details

    • BaselineFilter

      public BaselineFilter()
      Constructs a default BaselineFilter.
  • Method Details

    • capture

      public void capture()
      Captures the current video frame to use as baseline image.
    • save

      public void save()
      Saves the current baseline image.
    • load

      public void load(String path)
      Loads a baseline image from the specified path.
      Parameters:
      path - the image path
    • load

      public void load()
      Loads an image with a file chooser.
    • setBaselineImage

      public boolean setBaselineImage(BufferedImage image)
      Sets the baseline image.
      Parameters:
      image - the image
      Returns:
      true if the image was accepted
    • getBaselineImage

      public BufferedImage getBaselineImage()
      Gets the baseline image being subtracted.
      Returns:
      the image
    • resizeThumbnail

      public void resizeThumbnail()
      Used to resize thumbnanil image when font size is changed.
    • newInspector

      protected Filter.InspectorDlg newInspector()
      Implements abstract Filter method.
      Specified by:
      newInspector in class Filter
      Returns:
      the inspector
    • initInspector

      protected Filter.InspectorDlg initInspector()
      Specified by:
      initInspector in class Filter
    • clear

      public void clear()
      Clears this filter
      Overrides:
      clear in class Filter
    • refresh

      public void refresh()
      Refreshes this filter's GUI
      Overrides:
      refresh in class Filter
    • initializeSubclass

      protected void initializeSubclass()
      Creates new input, output and baseline images.
      Specified by:
      initializeSubclass in class Filter
      Parameters:
      image - a new source image
    • setOutputPixels

      protected void setOutputPixels()
      Sets the output to an image-subtracted version of the input.
      Specified by:
      setOutputPixels in class Filter
    • getLoader

      public static XML.ObjectLoader getLoader()
      Returns an XML.ObjectLoader to save and load filter data.
      Returns:
      the object loader