@ -1,3 +1,3 @@ |
||||
[submodule "modules/viz2d/third/nanogui"] |
||||
path = modules/viz2d/third/nanogui |
||||
[submodule "modules/v4d/third/nanogui"] |
||||
path = modules/v4d/third/nanogui |
||||
url = https://github.com/kallaballa/nanogui.git |
||||
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 685 KiB After Width: | Height: | Size: 685 KiB |
Before Width: | Height: | Size: 993 KiB After Width: | Height: | Size: 993 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 993 KiB After Width: | Height: | Size: 993 KiB |
@ -1,7 +1,7 @@ |
||||
# Render vector graphics {#viz2d_vector_graphics} |
||||
# Render vector graphics {#v4d_vector_graphics} |
||||
|
||||
@prev_tutorial{viz2d_display_image} |
||||
@next_tutorial{viz2d_render_opengl} |
||||
@prev_tutorial{v4d_display_image} |
||||
@next_tutorial{v4d_render_opengl} |
||||
|
||||
| | | |
||||
| -: | :- | |
@ -1,7 +1,7 @@ |
||||
# OpenGL Rendering {#viz2d_render_opengl} |
||||
# OpenGL Rendering {#v4d_render_opengl} |
||||
|
||||
@prev_tutorial{viz2d_vector_graphics} |
||||
@next_tutorial{viz2d_font_rendering} |
||||
@prev_tutorial{v4d_vector_graphics} |
||||
@next_tutorial{v4d_font_rendering} |
||||
|
||||
| | | |
||||
| -: | :- | |
@ -1,7 +1,7 @@ |
||||
# Font rendering {#viz2d_font_rendering} |
||||
# Font rendering {#v4d_font_rendering} |
||||
|
||||
@prev_tutorial{viz2d_render_opengl} |
||||
@next_tutorial{viz2d_video_editing} |
||||
@prev_tutorial{v4d_render_opengl} |
||||
@next_tutorial{v4d_video_editing} |
||||
|
||||
| | | |
||||
| -: | :- | |
@ -1,7 +1,7 @@ |
||||
# Video editing {#viz2d_video_editing} |
||||
# Video editing {#v4d_video_editing} |
||||
|
||||
@prev_tutorial{viz2d_font_rendering} |
||||
@next_tutorial{viz2d_custom_source_and_sink} |
||||
@prev_tutorial{v4d_font_rendering} |
||||
@next_tutorial{v4d_custom_source_and_sink} |
||||
|
||||
| | | |
||||
| -: | :- | |
@ -0,0 +1,17 @@ |
||||
# Custom Source and Sink {#v4d_custom_source_and_sink} |
||||
|
||||
@prev_tutorial{v4d_video_editing} |
||||
@next_tutorial{v4d_font_with_gui} |
||||
|
||||
| | | |
||||
| -: | :- | |
||||
| Original author | Amir Hassan (kallaballa) <amir@viel-zu.org> | |
||||
| Compatibility | OpenCV >= 4.7 | |
||||
|
||||
## Reading and writing to V4D using custom Sources and Sinks |
||||
In the previous tutorial we used a default video source and a video sink to stream a video through V4D which can be manipulated using OpenGL, NanoVG or OpenCV. In this example we are creating a custom Source that generates rainbow frames. For each time the Source is invoked the frame is colored a slightly different color. Additionally the custom Sink saves individual images instead of a video. |
||||
|
||||
@include samples/cpp/custom_source_and_sink.cpp |
||||
|
||||
 |
||||
|
@ -1,6 +1,6 @@ |
||||
# Form based GUI {#viz2d_font_with_gui} |
||||
# Form based GUI {#v4d_font_with_gui} |
||||
|
||||
@prev_tutorial{viz2d_custom_source_and_sink} |
||||
@prev_tutorial{v4d_custom_source_and_sink} |
||||
|
||||
| | | |
||||
| -: | :- | |
@ -1,7 +1,7 @@ |
||||
# Tetra-Demo {#viz2d_tetra} |
||||
# Tetra-Demo {#v4d_tetra} |
||||
|
||||
@prev_tutorial{viz2d} |
||||
@next_tutorial{viz2d_video} |
||||
@prev_tutorial{v4d} |
||||
@next_tutorial{v4d_video} |
||||
|
||||
| | | |
||||
| -: | :- | |
@ -1,7 +1,7 @@ |
||||
# Video-Demo {#viz2d_video} |
||||
# Video-Demo {#v4d_video} |
||||
|
||||
@prev_tutorial{viz2d_tetra} |
||||
@next_tutorial{viz2d_nanovg} |
||||
@prev_tutorial{v4d_tetra} |
||||
@next_tutorial{v4d_nanovg} |
||||
|
||||
| | | |
||||
| -: | :- | |
@ -1,7 +1,7 @@ |
||||
# Nanovg-Demo {#viz2d_nanovg} |
||||
# Nanovg-Demo {#v4d_nanovg} |
||||
|
||||
@prev_tutorial{viz2d_video} |
||||
@next_tutorial{viz2d_shader} |
||||
@prev_tutorial{v4d_video} |
||||
@next_tutorial{v4d_shader} |
||||
|
||||
| | | |
||||
| -: | :- | |
@ -1,7 +1,7 @@ |
||||
# Shader-Demo {#viz2d_shader} |
||||
# Shader-Demo {#v4d_shader} |
||||
|
||||
@prev_tutorial{viz2d_nanovg} |
||||
@next_tutorial{viz2d_font} |
||||
@prev_tutorial{v4d_nanovg} |
||||
@next_tutorial{v4d_font} |
||||
|
||||
| | | |
||||
| -: | :- | |
@ -1,7 +1,7 @@ |
||||
# Font-Demo {#viz2d_font} |
||||
# Font-Demo {#v4d_font} |
||||
|
||||
@prev_tutorial{viz2d_shader} |
||||
@next_tutorial{viz2d_pedestrian} |
||||
@prev_tutorial{v4d_shader} |
||||
@next_tutorial{v4d_pedestrian} |
||||
|
||||
| | | |
||||
| -: | :- | |
@ -1,7 +1,7 @@ |
||||
# Pedestrian-Demo {#viz2d_pedestrian} |
||||
# Pedestrian-Demo {#v4d_pedestrian} |
||||
|
||||
@prev_tutorial{viz2d_font} |
||||
@next_tutorial{viz2d_optflow} |
||||
@prev_tutorial{v4d_font} |
||||
@next_tutorial{v4d_optflow} |
||||
|
||||
| | | |
||||
| -: | :- | |
@ -1,7 +1,7 @@ |
||||
# Optflow-Demo {#viz2d_optflow} |
||||
# Optflow-Demo {#v4d_optflow} |
||||
|
||||
@prev_tutorial{viz2d_pedestrian} |
||||
@next_tutorial{viz2d_beauty} |
||||
@prev_tutorial{v4d_pedestrian} |
||||
@next_tutorial{v4d_beauty} |
||||
|
||||
| | | |
||||
| -: | :- | |
@ -1,6 +1,6 @@ |
||||
# Beauty-Demo {#viz2d_beauty} |
||||
# Beauty-Demo {#v4d_beauty} |
||||
|
||||
@prev_tutorial{viz2d_optflow} |
||||
@prev_tutorial{v4d_optflow} |
||||
|
||||
| | | |
||||
| -: | :- | |
@ -1,17 +0,0 @@ |
||||
# Custom Source and Sink {#viz2d_custom_source_and_sink} |
||||
|
||||
@prev_tutorial{viz2d_video_editing} |
||||
@next_tutorial{viz2d_font_with_gui} |
||||
|
||||
| | | |
||||
| -: | :- | |
||||
| Original author | Amir Hassan (kallaballa) <amir@viel-zu.org> | |
||||
| Compatibility | OpenCV >= 4.7 | |
||||
|
||||
## Reading and writing to Viz2D using custom Sources and Sinks |
||||
In the previous tutorial we used a default video source and a video sink to stream a video through Viz2D which can be manipulated using OpenGL, NanoVG or OpenCV. In this example we are creating a custom Source that generates rainbow frames. For each time the Source is invoked the frame is colored a slightly different color. Additionally the custom Sink saves individual images instead of a video. |
||||
|
||||
@include samples/cpp/custom_source_and_sink.cpp |
||||
|
||||
 |
||||
|