Ask Your Question

Revision history [back]

Right now your are loading image given as first argument to your program (argv[1]) If you want to load a default image in the code, just replace argv[1] by "c:\Where\MyImage\IS\image.jpg" or "/home/myself/myimage/is/here.png" for example, in the imread function.

click to hide/show revision 2
fix double backslash by triple in wiki edition

Right now your are loading image given as first argument to your program (argv[1]) If you want to load a default image in the code, just replace argv[1] by "c:\Where\MyImage\IS\image.jpg" "c:\\Where\\MyImage\\IS\\image.jpg" or "/home/myself/myimage/is/here.png" for example, in the imread function.