Class AlgorithmQuantify

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable, java.util.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 Detail

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

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

      • finalize

        public void finalize()
        Prepares this class for destruction.
        Overrides:
        finalize 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)