summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-09-30 13:00:35 +0200
committerPatrick Simianer <p@simianer.de>2016-09-30 13:00:35 +0200
commitfa3864be7712920ef33d5f681521eae11856b571 (patch)
treecd919241b7ca32211854e1d6ec94a98334577e8a
parentd3bd05d9f29d7c602d560d59f627760f654a83c7 (diff)
straighten-img: file from args
-rw-r--r--straighten-img.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/straighten-img.cpp b/straighten-img.cpp
index 102e8e5..2b83b85 100644
--- a/straighten-img.cpp
+++ b/straighten-img.cpp
@@ -65,9 +65,9 @@ void on_mouse(int event, int x, int y, int flags, void* param)
cv::imshow("src", im1);
}
-int main()
+int main(int argc, char** argv)
{
- im0 = cv::imread("lena.png");
+ im0 = cv::imread(argv[1]);
if (!im0.data)
{
std::cout << "Cannot load source image!" << std::endl;