Parallel Capturing and Processing

<< Click to Display Table of Contents >>

Navigation:  HowTo's > Multithreading >

Parallel Capturing and Processing

This topic explains how to run image acquisition and 3d data computation independently when using a single camera.

Please read the topics Opening a Camera and Grabbing 3D Data first.

Note: Rendering commands like RenderPointMap and RenderView use a single OpenGL context and therefore will be internally serialized and run sequentially, also when executed from separate Execute nodes. As these commands also have a single, global output node it is recommended to run at most one instance of each at a time.

Code Examples

Single Threaded

hmtoggle_plus1C++

Multi Threaded

Note: The two command objects capture and computeDisparityMap in Thread 1 and Thread 2 create two separate execution nodes /Execute/capture and /Execute/compute. Each of these nodes has its own Command, Parameters and Result subnodes and can be used to execute any command independently from commands any other execution node.

hmtoggle_plus1C++