We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e095ac4 commit 6b687e6Copy full SHA for 6b687e6
image_view/src/nodes/image_view.cpp
@@ -138,8 +138,12 @@ int main(int argc, char **argv)
138
139
// Handle window size
140
bool autosize;
141
- local_nh.param("autosize", autosize, false);
142
- cv::namedWindow(g_window_name, autosize ? (CV_WINDOW_AUTOSIZE | CV_WINDOW_KEEPRATIO | CV_GUI_EXPANDED) : 0);
+ local_nh.param("autosize", autosize, true);
+ cv::namedWindow(g_window_name, autosize ? (cv::WINDOW_NORMAL) : 0);
143
+ if (autosize)
144
+ {
145
+ cv::setWindowProperty(g_window_name, cv::WND_PROP_FULLSCREEN, cv::WINDOW_FULLSCREEN);
146
+ }
147
cv::setMouseCallback(g_window_name, &mouseCb);
148
149
// Handle mirror
0 commit comments