Beginner problem: window size from previous run
Hey everybody,
I just started to learn OpenCV and encountered the following problem.
- I ran my code which loads and shows an image.
- Then I manually changed the size of the window.
- When I run my code again, the window will still have the distorted size.
This is the code that I use:
char* imgData;
IplImage *img = cvLoadImage("jpgTest.jpg");
// show source image
cvNamedWindow("Image",0);
cvShowImage("Image",img);
cvWaitKey();
cvReleaseImage(&img);
cvDestroyWindow("Image:");
I am very thankful to any help and explanation and also comments on how to improve the code. Thank you very much!