Class SumFilter


public class SumFilter extends Filter
This is a Filter that sums pixel values from multiple images.
Version:
1.0
Author:
Douglas Brown
  • Field Details

    • rsums

      protected int[] rsums
    • gsums

      protected int[] gsums
    • bsums

      protected int[] bsums
  • Constructor Details

    • SumFilter

      public SumFilter()
      Constructs a SumFilter.
  • Method Details

    • setBrightness

      public void setBrightness(double fraction)
      Sets the brightness fraction.
      Parameters:
      fraction - the brightness as a fraction of full
    • setMean

      public void setMean(boolean mean)
      Sets the mean flag.
      Parameters:
      mean - true to show the mean
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides Filter method.
      Overrides:
      setEnabled in class Filter
      Parameters:
      enabled - true to enable this filter.
    • newInspector

      protected Filter.InspectorDlg newInspector()
      Specified by:
      newInspector in class Filter
    • 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
    • addNextImage

      public void addNextImage()
      Requests that this filter add the next image it receives
    • initializeSubclass

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

      protected void setOutputPixels()
      Sets the output image pixels to the reduced sum values.
      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