public CarSnapshotGraph createCarSnapshotGraph(Bitmap bi) {
   CarSnapshotGraph graph = new CarSnapshotGraph(this);
   float[] peaks = new float[bi.getHeight()];
   /** Graph at vertical position */
   NativeGraphics.getHSVBrightness(bi, peaks);
   graph.addPeaks(peaks);
   return graph;
 }
  private ArrayList<Graph.Peak> computeGraph(Bitmap img) {
    Bitmap dest = verticalEdgeBi(img);
    dest = NativeGraphics.treshold(dest, 150);

    // Intelligence.console.consoleBitmap(dest);

    CarSnapshotGraph graphHandle = this.createCarSnapshotGraph(dest);
    graphHandle.rankFilter(carsnapshot_graphrankfilter);
    graphHandle.applyProbabilityDistributor(distributor);
    /** .40 - min .45 - ideal .50 - max */
    graphHandle.findPeaks(2, 2, .40f); // We find two candidate

    // Intelligence.console.consoleBitmap(graphHandle.renderVertically(50, 300));

    dest.recycle();
    return graphHandle.peaks;
  }