Merge pull request #3357 from briansp2020:master
This commit is contained in:
commit
fe4e1913f0
@ -159,6 +159,17 @@ int main(int argc, char** argv)
|
|||||||
Mat img1 = imread(img1_filename, color_mode);
|
Mat img1 = imread(img1_filename, color_mode);
|
||||||
Mat img2 = imread(img2_filename, color_mode);
|
Mat img2 = imread(img2_filename, color_mode);
|
||||||
|
|
||||||
|
if (img1.empty())
|
||||||
|
{
|
||||||
|
printf("Command-line parameter error: could not load the first input image file\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (img2.empty())
|
||||||
|
{
|
||||||
|
printf("Command-line parameter error: could not load the second input image file\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
if (scale != 1.f)
|
if (scale != 1.f)
|
||||||
{
|
{
|
||||||
Mat temp1, temp2;
|
Mat temp1, temp2;
|
||||||
|
Loading…
Reference in New Issue
Block a user