File size: 2,253 Bytes
68ce2fc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | cisstStereoVision Architecture
==============================
- Multithreaded processing, see :doc:`Thread Synchronization Macros </libraries/cisstStereoVision/thread-sync>`
- :doc:`svlFilterSplitter </libraries/cisstStereoVision/filter-splitter>`
Example 5 - Filters with multithreaded processing
=================================================
List of files
-------------
- ``CMakeLists.txt``: CMake script for creating compiler dependent projects
- ``CMyFilter2.h``: Custom filter 2 class declaration
- ``CMyFilter2.cpp``: Custom filter 2 class definition
- ``CMyFilter3.h``: Custom filter 3 class declaration
- ``CMyFilter3.cpp``: Custom filter 3 class definition
- ``main.cpp``: Application entry point (``main()`` function)
All files can be found under ``cisstStereoVision/examples/tutorial4``.
Source code
-----------
CMake
~~~~~
.. literalinclude:: ../../../../cisstStereoVision/examples/tutorial4/CMakeLists.txt
:language: cmake
:start-after: # [doc-cmake-start]
:end-before: # [doc-cmake-end]
Custom filter 2 class declaration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../../../cisstStereoVision/examples/tutorial4/CMyFilter2.h
:language: c++
:start-after: // [doc-filter2-h-start]
:end-before: // [doc-filter2-h-end]
Custom filter 2 class implementation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../../../cisstStereoVision/examples/tutorial4/CMyFilter2.cpp
:language: c++
:start-after: // [doc-filter2-cpp-start]
:end-before: // [doc-filter2-cpp-end]
Custom filter 3 class declaration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../../../cisstStereoVision/examples/tutorial4/CMyFilter3.h
:language: c++
:start-after: // [doc-filter3-h-start]
:end-before: // [doc-filter3-h-end]
Custom filter 3 class implementation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../../../cisstStereoVision/examples/tutorial4/CMyFilter3.cpp
:language: c++
:start-after: // [doc-filter3-cpp-start]
:end-before: // [doc-filter3-cpp-end]
Main program
~~~~~~~~~~~~
.. literalinclude:: ../../../../cisstStereoVision/examples/tutorial4/main.cpp
:language: c++
:start-after: // [doc-main-start]
:end-before: // [doc-main-end]
|