1 | initial version |
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.
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.