vec_math
Interface Histogram

All Known Subinterfaces:
JHistogram
All Known Implementing Classes:
CountHistogram, DoubleHistogram, FitsHistogram

public interface Histogram

A histrogram interface for describing intensity levels in an image by use of a histogram. Histogram bins start at the intensity minimum and end at the maximum. There is no rule for prescribing the number of bins that a histogram may have, but the actual bin width in intensity can be queried with getBinWidth(). To work together neathly with FITS images, that also support double pixel, we base calculations on doubles rather thatn float which would be more appropriate if working together with BufferedImageOp.


Method Summary
 double getAverage()
          Returns the intensity average.
 int[] getBinCounts()
          Returns the histogram itself.
 double getBinWidth()
          Return the bin width of the histogram in intensity.
 double getMax()
          Returns the intensity maximum.
 double getMedian()
          Returns the intensity median.
 double getMin()
          Returns the intensity minimum.
 double getMode()
          Returns the intensity mode.
 int getTotal()
          Return the total number of samples in this histogram.
 

Method Detail

getBinWidth

double getBinWidth()
Return the bin width of the histogram in intensity.


getMin

double getMin()
Returns the intensity minimum.


getMax

double getMax()
Returns the intensity maximum.


getAverage

double getAverage()
Returns the intensity average.


getMedian

double getMedian()
Returns the intensity median.


getMode

double getMode()
Returns the intensity mode.


getBinCounts

int[] getBinCounts()
Returns the histogram itself. For each intensity level bin, this returns the number of pixel.


getTotal

int getTotal()
Return the total number of samples in this histogram.