public interface WindowedHistogramExtractor
Modifier and Type | Method and Description |
---|---|
Histogram |
computeHistogram(int x,
int y,
int w,
int h)
Compute the histogram for the given window.
|
void |
computeHistogram(int x,
int y,
int w,
int h,
Histogram histogram)
Compute the histogram for the given window, storing the output in the
given
Histogram object, which must have the same length as given
by getNumBins() . |
Histogram |
computeHistogram(Rectangle roi)
Compute the histogram for the given window.
|
void |
computeHistogram(Rectangle roi,
Histogram histogram)
Compute the histogram for the given window, storing the output in the
given
Histogram object, which must have the same length as given
by getNumBins() . |
int |
getNumBins()
Get the number of bins
|
int getNumBins()
Histogram computeHistogram(Rectangle roi)
roi
- the windowHistogram computeHistogram(int x, int y, int w, int h)
x
- The x-coordinate of the top-left of the windowy
- The y-coordinate of the top-left of the windoww
- The width of the windowh
- The height of the windowvoid computeHistogram(Rectangle roi, Histogram histogram)
Histogram
object, which must have the same length as given
by getNumBins()
.roi
- the windowhistogram
- the histogram to write tovoid computeHistogram(int x, int y, int w, int h, Histogram histogram)
Histogram
object, which must have the same length as given
by getNumBins()
.x
- The x-coordinate of the top-left of the windowy
- The y-coordinate of the top-left of the windoww
- The width of the windowh
- The height of the windowhistogram
- the histogram to write to