Commit bd971fd7 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #523 from sturkmen72:update_shape_trasformation

parents 17885a7d 947964b8
...@@ -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