Skip to content

Commit

Permalink
visualize result when test C++ code
Browse files Browse the repository at this point in the history
  • Loading branch information
maktu6 committed Feb 22, 2019
1 parent ab95a91 commit f3286b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 66 deletions.
64 changes: 0 additions & 64 deletions demo.ipynb

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions inpaint_mat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@ int main()
input = imread("../image_files/forest/forest.bmp");
mask = imread("../image_files/forest/forest_pruned.bmp", 0);
// cvtColor(mask_rgb, mask, CV_BGR2GRAY);
cout << mask.type() << endl;
cout << mask.rows << endl;
// cout << mask.type() << endl;
// cout << mask.rows << endl;

output = inpaintPatchMatch_mat(input, mask, 2);
// visualize result
namedWindow("MyWindow", CV_WINDOW_AUTOSIZE);
imshow("result", output);
waitKey(0);
destroyWindow("MyWindow");
cout << "done" << endl;

return 0;
}

0 comments on commit f3286b6

Please sign in to comment.