Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I suggest you take a look at the tutorial here regarding writing images on disk. The line which you probably need is the following:

 imwrite( "../where/you/want/it/to/be/saved/, img);

I suggest you take a look at the tutorial here regarding writing images on disk. The line which you probably need is the following:

 imwrite( "../where/you/want/it/to/be/saved/, img);

instead of the function that shows the image in a window via:

 imshow("wooohooo", img);

which you currently have.

I suggest you take a look at the tutorial here regarding writing images on disk. The line which you probably need is the following:

 imwrite( "../where/you/want/it/to/be/saved/, "../where/you/want/it/to/be/saved/", img);

instead of the function that shows the image in a window via:

 imshow("wooohooo", img);

which you currently have.