Class AlgorithmGenerateIsolines

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

public class AlgorithmGenerateIsolines extends AlgorithmBase
  • Field Details

    • threshold

      private double threshold
      This is a fast implementation of the marching squares algorithm for finding isolines (lines of equal color) in an image.
    • intensityR

      private float intensityR
    • intensityG

      private float intensityG
    • intensityB

      private float intensityB
    • in

      private double[] in
    • out

      private float[][] out
    • vx

      private double[] vx
    • vy

      private double[] vy
    • minx

      private double[] minx
    • miny

      private double[] miny
    • maxx

      private double[] maxx
    • maxy

      private double[] maxy
    • cd

      private int[] cd
    • cx

      private double[] cx
    • cy

      private double[] cy
    • cu

      private double[] cu
    • cl

      private int[] cl
    • co

      private int[] co
    • cu2

      private double[] cu2
    • tips

      private double[] tips
    • n

      private int n
    • xDim

      private int xDim
    • yDim

      private int yDim
    • sliceSize

      private int sliceSize
    • STEP_SIZE

      private double STEP_SIZE
    • numContours

      private int numContours
    • CASE0

      private final int CASE0
      See Also:
    • CASE1

      private final int CASE1
      See Also:
    • CASE2

      private final int CASE2
      See Also:
    • CASE3

      private final int CASE3
      See Also:
    • CASE4

      private final int CASE4
      See Also:
    • CASE5

      private final int CASE5
      See Also:
    • CASE6

      private final int CASE6
      See Also:
    • CASE7

      private final int CASE7
      See Also:
    • CASE8

      private final int CASE8
      See Also:
    • CASE9

      private final int CASE9
      See Also:
    • CASE10

      private final int CASE10
      See Also:
    • CASE11

      private final int CASE11
      See Also:
    • CASE12

      private final int CASE12
      See Also:
    • CASE13

      private final int CASE13
      See Also:
    • CASE14

      private final int CASE14
      See Also:
    • CASE15

      private final int CASE15
      See Also:
    • WHITE

      private final int WHITE
      See Also:
    • BLACK

      private final int BLACK
      See Also:
  • Constructor Details

    • AlgorithmGenerateIsolines

      public AlgorithmGenerateIsolines(ModelImage destImg, ModelImage srcImg, double threshold, float intensityR, float intensityG, float intensityB)
  • Method Details

    • runAlgorithm

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

      private void createOnePixelBorder(double borderval)
    • preCodeImage

      private void preCodeImage()
    • ixy

      public int ixy(int x, int y)
    • findIsolines

      private int findIsolines()
    • t

      public double t(double A, double B)
    • computeBoundingBoxes

      public void computeBoundingBoxes()
    • getContourLength

      public int getContourLength(int contour)
    • getNumContours

      public int getNumContours()
    • drawContours

      public void drawContours()
    • drawContour

      public void drawContour(int contour)
    • getContourX

      public double getContourX(int contour, int v)
    • getContourY

      public double getContourY(int contour, int v)
    • wrap

      public int wrap(int i, int lo, int hi)