OpenCV3.0 WINDOWS_NORMAL flag not working

asked 2015-04-21 09:03:25 -0500

krips89 gravatar image

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?

edit retag flag offensive close merge delete

Comments

which os / gui toolkit is used there ?

berak gravatar imageberak ( 2015-04-21 09:34:52 -0500 )edit
1

@break, Ubuntu 14.04. I am not sure what gui toolkit is. Do you mean the GUI framework highgui uses in the background? I am not sure what it uses (how can I know?). But the cmake cache shows WITH_VTK to be true. And WITH_QT and WITH_OPENGL false.

krips89 gravatar imagekrips89 ( 2015-04-21 09:52:08 -0500 )edit

^^ yes, perfect, thanks ;)

berak gravatar imageberak ( 2015-04-21 10:02:49 -0500 )edit

Hi break, any updates or comments?

krips89 gravatar imagekrips89 ( 2015-04-22 03:52:44 -0500 )edit

no, sorry. works fine on win. (my linux boxes are all headless, so can't test there)

berak gravatar imageberak ( 2015-04-22 03:59:10 -0500 )edit

It was working before, but does not work after the latest pull yesterday. I'll try compiling everything with OPENGL and share the info.

krips89 gravatar imagekrips89 ( 2015-04-22 04:42:16 -0500 )edit

With QT it is working fine. But with vtk not.

krips89 gravatar imagekrips89 ( 2015-04-27 04:32:26 -0500 )edit