jsky.image
Class ImageHistogram

java.lang.Object
  extended by jsky.image.ImageHistogram

public class ImageHistogram
extends java.lang.Object

Utility class used to avoid creating the same Histogram twice (Once for auto-setting cut levels and once for histogram equalization, if selected). The previous arguments and resulting histogram are cached and compared the next time getHistogram is called. If the arguments have not changed, the cached Histogram is returned.


Constructor Summary
ImageHistogram()
          Default Constructor
 
Method Summary
 javax.media.jai.Histogram getHistogram(javax.media.jai.PlanarImage im, int size, double lowCut, double highCut, javax.media.jai.ROI roi, int xPeriod, int yPeriod)
          Return a histogram for the given image with the given size (number of bins).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageHistogram

public ImageHistogram()
Default Constructor

Method Detail

getHistogram

public javax.media.jai.Histogram getHistogram(javax.media.jai.PlanarImage im,
                                              int size,
                                              double lowCut,
                                              double highCut,
                                              javax.media.jai.ROI roi,
                                              int xPeriod,
                                              int yPeriod)
Return a histogram for the given image with the given size (number of bins). The arguments are the same as those for the JAI histogram image operation.