diff --git a/modules/v4d/samples/nanovg-demo.cpp b/modules/v4d/samples/nanovg-demo.cpp index 675f0614b..7c41d07b9 100644 --- a/modules/v4d/samples/nanovg-demo.cpp +++ b/modules/v4d/samples/nanovg-demo.cpp @@ -127,9 +127,9 @@ static bool iteration() { static cv::UMat hsv; static cv::UMat hueChannel; - //we use frame count to calculated the current hue + //we use frame count to calculate the current hue float t = window->frameCount() / 60.0; - //nanovg hue fading depending t + //nanovg hue fading depending on t float hue = (sinf(t * 0.12f) + 1.0f) * 127.5; if (!window->capture()) @@ -167,7 +167,6 @@ static bool iteration() { window->write(); - //If onscreen rendering is enabled it displays the framebuffer in the native window. Returns false if the window was closed. return window->display(); } diff --git a/modules/v4d/samples/video-demo.cpp b/modules/v4d/samples/video-demo.cpp index 185034b86..d05035329 100644 --- a/modules/v4d/samples/video-demo.cpp +++ b/modules/v4d/samples/video-demo.cpp @@ -3,7 +3,7 @@ // of this distribution and at http://opencv.org/license.html. // Copyright Amir Hassan (kallaballa) -/** +/* * Based on cube-demo. Only differs in two points: * - Uses a source to read a video. * - Doesn't clear the background so the cube is rendered on top of the video. diff --git a/modules/v4d/tutorials/16-optflow.markdown b/modules/v4d/tutorials/16-optflow.markdown index 5e7d729a2..d2764f075 100644 --- a/modules/v4d/tutorials/16-optflow.markdown +++ b/modules/v4d/tutorials/16-optflow.markdown @@ -8,7 +8,7 @@ | Original author | Amir Hassan (kallaballa) | | Compatibility | OpenCV >= 4.7 | -Optical flow visualization on top of a video. Uses background subtraction (OpenCV/) to isolate areas with motion, detects features to track (OpenCV), calculates the optical flow (OpenCV), uses nanovg for rendering (OpenGL) and post-processes the video (OpenCV/). +Optical flow visualization on top of a video. Uses background subtraction (OpenCV) to isolate areas with motion, detects features to track (OpenCV), calculates the optical flow (OpenCV), uses nanovg for rendering (OpenGL) and post-processes the video (OpenCV). \htmlinclude "../samples/example_v4d_optflow-demo.html"