fixed comments

pull/3471/head
kallaballa 2 years ago
parent 1f0b72d6df
commit a57a5fc109
  1. 5
      modules/v4d/samples/nanovg-demo.cpp
  2. 2
      modules/v4d/samples/video-demo.cpp
  3. 2
      modules/v4d/tutorials/16-optflow.markdown

@ -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();
}

@ -3,7 +3,7 @@
// of this distribution and at http://opencv.org/license.html.
// Copyright Amir Hassan (kallaballa) <amir@viel-zu.org>
/**
/*
* 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.

@ -8,7 +8,7 @@
| Original author | Amir Hassan (kallaballa) <amir@viel-zu.org> |
| 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"

Loading…
Cancel
Save