Class AlgorithmVOIExtraction

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

public class AlgorithmVOIExtraction extends AlgorithmBase
DOCUMENT ME!
  • Field Details

    • addedVOI

      private VOI addedVOI
      DOCUMENT ME!
    • colorTable

      private Color[] colorTable
      DOCUMENT ME!
    • expImgBuffer

      private short[] expImgBuffer
      DOCUMENT ME!
    • grayScaleArray

      private short[] grayScaleArray
      DOCUMENT ME!
    • imgBuffer

      private short[] imgBuffer
      DOCUMENT ME!
    • mask

      private BitSet mask
      DOCUMENT ME!
    • mask2

      private BitSet mask2
      DOCUMENT ME!
    • maskAll

      private BitSet maskAll
      DOCUMENT ME!
    • maskList

      private short[][] maskList
      DOCUMENT ME!
    • nameTable

      private String[] nameTable
      DOCUMENT ME!
    • nextMaskList

      private short[][] nextMaskList
      DOCUMENT ME!
    • objBuffer

      private short[] objBuffer
      DOCUMENT ME!
    • outMask

      private BitSet outMask
      DOCUMENT ME!
    • VOIIndexArray

      private int[] VOIIndexArray
      DOCUMENT ME!
    • xDim

      private int xDim
      DOCUMENT ME!
    • xDimE

      private int xDimE
      DOCUMENT ME!
    • yDim

      private int yDim
      DOCUMENT ME!
    • yDimE

      private int yDimE
      DOCUMENT ME!
    • maskExpanded

      private BitSet maskExpanded
    • connected

      private int connected
    • numVOIAdded

      private int numVOIAdded
  • Constructor Details

    • AlgorithmVOIExtraction

      public AlgorithmVOIExtraction(ModelImage srcImg)
      Creates a new AlgorithmVOIExtraction object.
      Parameters:
      srcImg - source image model
  • Method Details

    • disposeLocal

      public void disposeLocal()
      DOCUMENT ME!
    • finalize

      public void finalize()
      Prepares this class for destruction.
      Overrides:
      finalize in class AlgorithmBase
    • runAlgorithm

      public void runAlgorithm()
      Starts the program.
      Specified by:
      runAlgorithm in class AlgorithmBase
    • setColorTable

      public void setColorTable(Color[] colorTable)
      DOCUMENT ME!
      Parameters:
      colorTable - DOCUMENT ME!
    • setNameTable

      public void setNameTable(String[] nameTable)
      DOCUMENT ME!
      Parameters:
      nameTable - DOCUMENT ME!
    • extendedBoundaryTracing

      private void extendedBoundaryTracing()
      From text description in 4th edition Image Processing, Analysis, and Machine Vision International Edition by Milan Sonka, Vaclav Hlavac, and Roger Boyle, Algorithm 6.8 Extended Boundary Tracing, pp. 195-196.
    • outerBoundaryTracing

      private void outerBoundaryTracing()
      From text description in 4th edition Image Processing, Analysis, and Machine Vision International Edition by Milan Sonka, Vaclav Hlavac, and Roger Boyle, Algorithm 6.7 Outer Boundary Tracing, p. 193.
    • calcInPlace2

      private void calcInPlace2()
      From text description in 4th edition Image Processing, Analysis, and Machine Vision International Edition by Milan Sonka, Vaclav Hlavac, and Roger Boyle, Algorithm 6.6 Inner Boundary Tracing, pp. 191-192. "Algorithm 6.6 works for all regions larger than one pixel. It is able to find region borders but does not find borders of region holes, which may be located by identifying border elements unallocated thus far to borders. The search for border elements always starts after a traced border is closed, and the search for "unused" border elements can continue in the same way as the search for the first border element. Note that if objects are of unit width, more conditions must be added." Can be used with either connected = 4 or connected = 8. Much less memory than calcInPlace.
    • calcInPlace

      private void calcInPlace()
      Calculates the VOI extraction.
    • setRegionMaskAll

      private void setRegionMaskAll()
      Sets the mask of all points in the 4 connected region with a gray scale value.
    • setRegionMaskI

      private void setRegionMaskI(int xStart, int yStart, short objectValue)
      Sets the mask of all points in the 4 connected region with a gray scale value of objectValue Uses iteration.
      Parameters:
      xStart - the x coordinate of the starting point
      yStart - the y coordinate of the starting point
      objectValue - the gray scale value of the object
    • setRegionOutMaskI

      private void setRegionOutMaskI(int xStart, int yStart, short objectValue)
      Sets the mask of all points in the 4 connected region with a gray scale value of objectValue Uses iteration.
      Parameters:
      xStart - the x coordinate of the starting point
      yStart - the y coordinate of the starting point
      objectValue - the gray scale value of the object
    • getAddedVOI

      public VOI getAddedVOI()
      Retrieve the VOI generated by the mask to voi extraction.
      Returns:
      The generated VOI object.
    • getNumVOIAdded

      public int getNumVOIAdded()