SATWindowedExtractor implements WindowedHistogramExtractor { @Override public Histogram computeHistogram(Rectangle roi) { return computeHistogram((int) roi.x, (int) roi.y, (int) roi.width, (int) roi.height); } protected  SATWindowedExtractor(int nbins);  SATWindowedExtractor(FImage[] magnitudeMaps); @Override int getNumBins(); @Override Histogram computeHistogram(Rectangle roi); @Override Histogram computeHistogram(final int x, final int y, final int w, final int h); @Override void computeHistogram(final int x, final int y, final int w, final int h, final Histogram hist); @Override void computeHistogram(Rectangle roi, Histogram histogram);  }
@Test public void testFullHistogram() { final Histogram hist1 = binned.computeHistogram(image.getBounds(), gradMags.magnitudes); final Histogram hist2 = sat.computeHistogram(image.getBounds()); assertArrayEquals(hist1.values, hist2.values, 0.5); final Histogram hist3 = binnedInterp.computeHistogram(image.getBounds(), gradMags.magnitudes); final Histogram hist4 = satInterp.computeHistogram(image.getBounds()); assertArrayEquals(hist3.values, hist4.values, 0.5); }