Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV3.0 WINDOWS_NORMAL flag not working

Hi, I just pulled the latest code from the trunk and now I observe that all the windows formed by cv::namedwindow is not resizable and is huge (probably as big as the input image which is huge as well). Following is the simple code for the reference:

void viewImage(cv::Mat image, vector<cv::KeyPoint> keypoints)
{
  cv::Mat outimage = image;
  cv::drawKeypoints(image, keypoints, outimage, cv::DrawMatchesFlags::DRAW_RICH_KEYPOINTS);

  cv::namedWindow( "Keypoints", cv::WINDOW_NORMAL ); // Create a window for display.
  cv::imshow("Keypoints", outimage);
  cv::waitKey(0);
}

What is wrong?