@Test
public void testHistogramArray() {

  opencv_core.Mat src = LaneManager.readImage(getResourcePath(TEST_IMAGE));
  opencv_core.Mat saturationChannel = LaneManager.getSaturationChannel(src);
  opencv_core.Mat thresholdBinary = LaneManager.threshold(saturationChannel, 150);
  int[] histogram = LaneManager.histogramArray(thresholdBinary);
  assertEquals(histogram.length, LaneManager.HISTOGRAM_BINS);
  drawHistogram(histogram, thresholdBinary, "/tmp/robocar_histogramArray.jpg");
}