Commit 947964b8 authored by Suleyman TURKMEN's avatar Suleyman TURKMEN

Update shape_transformation.cpp

parent ef4dd5e5
...@@ -26,9 +26,14 @@ static void help() ...@@ -26,9 +26,14 @@ static void help()
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
help(); help();
if (argc < 3)
{
printf("Not enough parameters\n");
return -1;
}
Mat img1 = imread(argv[1], IMREAD_GRAYSCALE); Mat img1 = imread(argv[1], IMREAD_GRAYSCALE);
Mat img2 = imread(argv[2], IMREAD_GRAYSCALE); Mat img2 = imread(argv[2], IMREAD_GRAYSCALE);
if(img1.empty() || img2.empty() || argc<2) if(img1.empty() || img2.empty())
{ {
printf("Can't read one of the images\n"); printf("Can't read one of the images\n");
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment