Class AlgorithmQuantify

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

public class AlgorithmQuantify extends AlgorithmBase
Quantify image data based on a mask image. At present calculates the number of voxels, volume, total intensity , mean intensity, and standard deviation for an object defined in a mask image.
Version:
0.1 Feb 11, 1998
Author:
Matthew J. McAuliffe, Ph.D.
  • Field Details

    • maskImage

      private ModelImage maskImage
      The mask image. The range of the image [0, positive integer value] where zero is the background and a positive number indicates that is part of an object that has the same positive integer number.
  • Constructor Details

    • AlgorithmQuantify

      public AlgorithmQuantify(ModelImage srcImg, ModelImage maskImg)
      Creates a new AlgorithmQuantify object.
      Parameters:
      srcImg - image model where result image is to stored
      maskImg - source image model
  • Method Details

    • 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
    • showRegionInfo

      public void showRegionInfo(int[] count, double[][] total, double[][] mean, double[][] stdDev, double[][] median)
      Display statistics about the grown region.
      Parameters:
      count - Number of pixels (voxels)
      total - Sum of pixel intensities
      mean - Average pixel intensity
      stdDev - Standard deviation of pixel intensities
      median - Median of pixel intensities
    • showRegionInfo

      public void showRegionInfo(int[] count)
      Display statistics about the grown region.
      Parameters:
      count - Number of pixels (voxels)