Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

set size of an window

Hi,

the following code produces a window, that is a little bit to large for my taste. How can I set the size of an window (in px or something like that)?

Hi,

the following code produces a window, that is a little bit to large for my taste. How can I set the size of an window (in px or something like that)?

Code: int main(){

VideoCapture cam("Basketball.mp4");
Mat image;
namedWindow("window");

while(1){
    cam >> image;
    imshow("window", image);
    if(waitKey(30) == 8) break;
}

}

enter code here