Merge pull request #523 from sturkmen72:update_shape_trasformation

pull/524/head
Alexander Alekhin 9 years ago
commit bd971fd78c
  1. 7
      modules/xfeatures2d/samples/shape_transformation.cpp

@ -26,9 +26,14 @@ static void help()
int main(int argc, char** argv)
{
help();
if (argc < 3)
{
printf("Not enough parameters\n");
return -1;
}
Mat img1 = imread(argv[1], 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");
return -1;

Loading…
Cancel
Save