#include "opencv2/imgproc/imgproc_c.h"
#include <string>
+void help()
+{
+ printf("\nThis program demonstrates the one way interest point descriptor found in features2d.hpp\n"
+ "Correspondences are drawn\n");
+ printf("Format: \n./one_way_sample [path_to_samples] [image1] [image2]\n");
+ printf("For example: ./one_way_sample ../../../opencv/samples/c scene_l.bmp scene_r.bmp\n");
+}
using namespace cv;
if (argc != 3 && argc != 4)
{
- printf("Format: \n./one_way_sample [path_to_samples] [image1] [image2]\n");
- printf("For example: ./one_way_sample ../../../opencv/samples/c scene_l.bmp scene_r.bmp\n");
+ help();
return 0;
}