Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

since you didn't mention the program, i will tell some solution which i got working with it

  1. you have to specify the image file name and location while running the program eg ./program image1.jpg

  2. If any error in specifying color/ grayscale, just specify as imread(argv[1]); cvtcolor(src,dst,CV_LOAD_IMAGE_GRAYSCALE)

  3. just specify imread(argv[1],0)

or otherwise you may have to include <opencv2 highgui="" highgui.hpp="">

since you didn't mention the program, i will tell some solution which i got working with it

  1. you have to specify the image file name and location while running the program eg ./program image1.jpg

  2. 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)

  3. just specify imread(argv[1],0)

or otherwise you may have to include <opencv2 highgui="" highgui.hpp="">