diff --git a/samples/c/one_way_sample.cpp b/samples/c/one_way_sample.cpp index 817a1d5816..476be225b9 100644 --- a/samples/c/one_way_sample.cpp +++ b/samples/c/one_way_sample.cpp @@ -17,8 +17,8 @@ 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"); + printf("Format: \n./one_way_sample \n"); + printf("For example: ./one_way_sample . ../c/scene_l.bmp ../c/scene_r.bmp\n"); } using namespace cv; @@ -32,7 +32,7 @@ int main(int argc, char** argv) const CvSize patch_size = cvSize(24, 24); const int pose_count = 50; - if (argc != 3 && argc != 4) + if (argc != 4) { help(); return 0; diff --git a/samples/cpp/generic_descriptor_match.cpp b/samples/cpp/generic_descriptor_match.cpp index adf3a52fc1..6b804acd1c 100644 --- a/samples/cpp/generic_descriptor_match.cpp +++ b/samples/cpp/generic_descriptor_match.cpp @@ -9,9 +9,9 @@ using namespace cv; void help() { - printf("Use the SURF descriptor for matching keypoints between 2 images\n"); - printf("Format: \n./generic_descriptor_match [image1] [image2] [algorithm] [XML params]\n"); - printf("For example: ./generic_descriptor_match scene_l.bmp scene_r.bmp FERN fern_params.xml\n"); + printf("Use the SURF descriptor for matching keypoints between 2 images\n"); + printf("Format: \n./generic_descriptor_match \n"); + printf("For example: ./generic_descriptor_match ../c/scene_l.bmp ../c/scene_r.bmp FERN fern_params.xml\n"); } IplImage* DrawCorrespondences(IplImage* img1, const vector& features1, IplImage* img2,