Skip to content

Commit

Permalink
Display execution times
Browse files Browse the repository at this point in the history
  • Loading branch information
nfeybesse committed Apr 10, 2018
1 parent 038ed32 commit df6a5d8
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,21 @@ private Image[] doWork() {
}
strip++;
}

Mat frame2 = superFrame.getFrame().getSrc().clone();
GeneralInterpolator interpolator = new GeneralInterpolator(horizontals, verticals, 2);
last = System.currentTimeMillis();
System.out.println("Prepare interpolator : " + (last - ref));
ref = last;
MeshGrid meshGrid = new MeshGrid(new Size(16, 9), interpolator, 20, 20, frame2);
meshGrid.build();
last = System.currentTimeMillis();
System.out.println("Build mesh : " + (last - ref));
ref = last;
meshGrid.draw(frame2, new Scalar(0, 255, 0));

last = System.currentTimeMillis();
System.out.println("Draw mesh : " + (last - ref));
ref = last;
images[3] = new Img(frame2, false).toJfxImage();

// images[7] = new Img(RadonTransform.estimateBaselines(superFrame.getFrame().getSrc(), 0), false).toJfxImage();
Expand Down

0 comments on commit df6a5d8

Please sign in to comment.