mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Fix#3714:Improve Display Image Tutorial
For Bug #3714, user use the imshow() function without calling namedWindow() properly, because user did not know the implicit rule for imshow(). (i.e. without calling namedWindow implied calling namedWindow( ,CV__WINDOW_AUTOSIZE). Improve the Display Image Tutorial to educate the user for such implied rule. Put a note on documentation for Bug#3714 Revise the documentation regarding to imshow() function to better educate the user the implicit rule. (i.e. without creating the window before the imshow() function is the same as creating AUTOSIZE window)
This commit is contained in:
@@ -83,6 +83,8 @@ The function ``imshow`` displays an image in the specified window. If the window
|
||||
|
||||
* If the image is 32-bit floating-point, the pixel values are multiplied by 255. That is, the value range [0,1] is mapped to [0,255].
|
||||
|
||||
If the window was not created before this function, it is assumed creating a window with ``CV_WINDOW_AUTOSIZE``.
|
||||
|
||||
If window was created with OpenGL support, ``imshow`` also support :ocv:class:`ogl::Buffer` , :ocv:class:`ogl::Texture2D` and :ocv:class:`gpu::GpuMat` as input.
|
||||
|
||||
namedWindow
|
||||
@@ -294,4 +296,4 @@ Force window to redraw its context and call draw callback ( :ocv:func:`setOpenGl
|
||||
|
||||
.. ocv:function:: void updateWindow(const string& winname)
|
||||
|
||||
:param winname: Window name
|
||||
:param winname: Window name
|
||||
Reference in New Issue
Block a user