Class HartleyTransform

java.lang.Object
java.lang.Thread
gov.nih.mipav.model.algorithms.AlgorithmBase
gov.nih.mipav.model.algorithms.HartleyTransform
All Implemented Interfaces:
ActionListener, WindowListener, Runnable, EventListener

public class HartleyTransform extends AlgorithmBase
The MIT License (MIT) Copyright (c) 2015 Eugeniy Sokol Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Field Details

    • transformImage

      private ModelImage transformImage
    • inverseImage

      private ModelImage inverseImage
    • pi

      private static final double pi
      See Also:
    • pi4

      private static final double pi4
      See Also:
    • sqrt2

      private static final double sqrt2
      See Also:
    • cos45

      private static final double cos45
      See Also:
    • cos22

      private static final double cos22
      See Also:
    • sin22

      private static final double sin22
      See Also:
    • fht_instance_count

      private int[] fht_instance_count
    • fht_trig_tables

      private double[][] fht_trig_tables
    • fht_revbin_tables

      private int[][] fht_revbin_tables
    • fht_revbin_counts

      private int[] fht_revbin_counts
    • size

      private int size
    • ldn

      private int ldn
  • Constructor Details

    • HartleyTransform

      public HartleyTransform()
    • HartleyTransform

      public HartleyTransform(int size)
    • HartleyTransform

      public HartleyTransform(ModelImage transformImage, ModelImage inverseImage, ModelImage srcImg)
  • Method Details

    • finalize

      public void finalize()
      Description copied from class: AlgorithmBase
      Calls garbage collector to release system resources.
      Overrides:
      finalize in class AlgorithmBase
    • show

      public void show(double[] data, int size)
    • testHartley

      public void testHartley()
    • transform

      public void transform(double[] data, boolean scaled)
    • back_transform

      public void back_transform(double[] fht_data)
    • hartley_multiply

      public void hartley_multiply(double[] fht_data, double[] fht_fir, boolean scaled)
    • get_frequency

      public double[] get_frequency(double[] fht_data, int number)
    • revbin_permute

      private void revbin_permute(double[] data)
    • step_addsub

      private void step_addsub(double[] data, int ldn)
    • step_rotate

      private void step_rotate(double[] data, int ldn)
    • step_addsub8

      private void step_addsub8(double[] data)
    • step_rotate8

      private void step_rotate8(double[] data)
    • step_addsub4

      private void step_addsub4(double[] data)
    • addsub

      private void addsub(double[] u, double[] v)
    • addsub

      private void addsub(double[] u, double[] v, double scale)
    • rotate

      private void rotate(double[] u, double[] v, double c, double s)
    • zabs

      private double zabs(double zr, double zi)
      zabs computes the absolute value or magnitude of a double precision complex variable zr + j*zi.
      Parameters:
      zr - double
      zi - double
      Returns:
      double
    • runAlgorithm

      public void runAlgorithm()
      Description copied from class: AlgorithmBase
      Actually runs the algorithm. Implemented by inheriting algorithms.
      Specified by:
      runAlgorithm in class AlgorithmBase