Class ModelHistogram

All Implemented Interfaces:
Serializable, Cloneable

public class ModelHistogram extends ModelStorageBase
Histogram model extends ModelStorageBase and stores and processes information about histograms.
Version:
0.1 Oct 1, 1997
Author:
Matthew J. McAuliffe, Ph.D.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • histogramFrameVector

      private Vector<Frame> histogramFrameVector
      DOCUMENT ME!
    • maxEntropyThreshold

      private int maxEntropyThreshold
      DOCUMENT ME!
    • mean

      private double mean
      DOCUMENT ME!
    • mode

      private int mode
      DOCUMENT ME!
    • otsuThreshold

      private int otsuThreshold
      DOCUMENT ME!
    • stRange

      private int stRange
      DOCUMENT ME!
    • endRange

      private int endRange
      DOCUMENT ME!
    • totalPixels

      private int totalPixels
      DOCUMENT ME!
  • Constructor Details

    • ModelHistogram

      public ModelHistogram(int type, int[] dimExtents)
      ModelHistogram.
      Parameters:
      type - indicates type of data in histogram
      dimExtents - array indicating extents (1 - dimension)
  • Method Details

    • getEndRange

      public int getEndRange()
      Gets the starting range of pixels.
      Returns:
      ending range
    • getMaxEntropyThreshold

      public int getMaxEntropyThreshold()
      Gets the maximum entropy threshold.
      Returns:
      int threshold
    • getMean

      public double getMean()
      Gets the mean pixel intensity.
      Returns:
      mean pixel intensity
    • getMode

      public int getMode()
      Gets the mode of the pixel intensities.
      Returns:
      total number of pixels in histogram
    • getOtsuThreshold

      public int getOtsuThreshold()
      Gets the otsu threshold as calculated in AlgorithmThreshold.
      Returns:
      int otsu threshold
    • getStartRange

      public int getStartRange()
      Gets the starting range of pixels.
      Returns:
      starting range
    • getTotalPixels

      public int getTotalPixels()
      Gets the total pixel count.
      Returns:
      total number of pixels in histogram
    • registerFrame

      public void registerFrame(Frame frame)
      Registers the image Frame.
      Parameters:
      frame - - Frame to be registered with image model so when the image model changes the view of the image will change
    • setEndRange

      public void setEndRange(int end)
      Sets the ending range of histogram.
      Parameters:
      end - end range of histogram
    • setMaxEntropyThreshold

      public void setMaxEntropyThreshold(int thres)
      Sets maximum entropy threshold.
      Parameters:
      thres - int threshold
    • setMean

      public void setMean(double mean)
      Sets mean intensity of histogram.
      Parameters:
      mean - mean value of intensity
    • setMode

      public void setMode(int mode)
      Sets the mode intensity of histogram.
      Parameters:
      mode - mode value of intensity
    • setOtsuThreshold

      public void setOtsuThreshold(int otsu)
      Sets the Otsu threshold.
      Parameters:
      otsu - int threshold
    • setStartRange

      public void setStartRange(int start)
      Sets the starting range of histogram.
      Parameters:
      start - start range of histogram
    • setTotalPixels

      public void setTotalPixels(int pixels)
      Sets total number of pixels of histogram.
      Parameters:
      pixels - total number of pixels
    • unregisterFrame

      public void unregisterFrame(Frame frame)
      Unregisters the image Frame.
      Parameters:
      frame - - Frame to be registered