1 | initial version |
since you didn't mention the program, i will tell some solution which i got working with it
you have to specify the image file name and location while running the program eg ./program image1.jpg
If any error in specifying color/ grayscale, just specify as imread(argv[1]); cvtcolor(src,dst,CV_LOAD_IMAGE_GRAYSCALE)
just specify imread(argv[1],0)
or otherwise you may have to include <opencv2 highgui="" highgui.hpp="">
2 | No.2 Revision |
since you didn't mention the program, i will tell some solution which i got working with it
you have to specify the image file name and location while running the program eg ./program image1.jpg
If any error in specifying color/ grayscale, just specify as
imread(argv[1]);
cvtcolor(src,dst,CV_LOAD_IMAGE_GRAYSCALE)cvtcolor(src,dst,CV_BGR2GRAY)
just specify imread(argv[1],0)
or otherwise you may have to include <opencv2 highgui="" highgui.hpp="">