Class RadialDistortionFilter


public class RadialDistortionFilter extends Filter
This is a Filter that applies radial transformations to an image.
Version:
1.0
Author:
Douglas Brown
  • Field Details

  • Constructor Details

    • RadialDistortionFilter

      public RadialDistortionFilter()
      Constructor.
  • Method Details

    • newInspector

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

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

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

      public void setFixedRadius(double fraction)
      Sets the fixed radius fraction. Pixels at this distance from the image center remain fixed.
      Parameters:
      fraction - the fixed radius as a fraction of the corner radius
    • getFixedRadius

      public double getFixedRadius()
      Gets the fixed radius. Pixels at this relative distance from the image center remain fixed.
      Returns:
      the fixed radius as a fraction of the center-to-corner distance
    • setSourceFOV

      public void setSourceFOV(double fov)
      Sets the source field of view.
      Parameters:
      fov - the diagonal field of view of the source image
    • getSourceFOV

      public double getSourceFOV()
      Gets the source field of view.
      Returns:
      the diagonal field of view of the source image
    • setSourceProjectionType

      public void setSourceProjectionType(String type)
      Sets the source image projection type.
      Parameters:
      type - one of the predefined types in the PROJECTION_TYPES list
    • getSourceProjectionType

      public String getSourceProjectionType()
      Gets the source image projection type.
      Returns:
      the source projection types
    • setOutputProjectionType

      public void setOutputProjectionType(String type)
      Sets the output image projection type.
      Parameters:
      type - one of the predefined types in the PROJECTION_TYPES list
    • getOutputProjectionType

      public String getOutputProjectionType()
      Gets the output image projection type.
      Returns:
      the output projection type
    • initializeSubclass

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

      protected void initializeSource(BufferedImage image)
      Overrides:
      initializeSource in class Filter
    • setOutputPixels

      protected void setOutputPixels()
      Sets the output image pixels to a transformed version of the input pixels.
      Specified by:
      setOutputPixels in class Filter
      Parameters:
      input - the input image
    • superIsEnabled

      public boolean superIsEnabled()
      for inner anonymous class; could use qualified super
      Returns:
    • getLoader

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