File size: 1,344 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
Example 4 - Creating custom filters
===================================

List of files
-------------

-  ``CMakeLists.txt``: CMake script for creating compiler dependent projects
-  ``CMyFilter1.h``: Custom filter 1 class declaration
-  ``CMyFilter1.cpp``: Custom filter 1 class definition
-  ``main.cpp``: Application entry point (``main()`` function)

Source code
-----------

All files can be found under ``cisstStereoVision/examples/tutorial3``.

CMake
~~~~~

.. literalinclude:: ../../../../cisstStereoVision/examples/tutorial3/CMakeLists.txt
   :language: cmake
   :start-after: # [doc-cmake-start]
   :end-before: # [doc-cmake-end]

Custom filter 1 class declaration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. literalinclude:: ../../../../cisstStereoVision/examples/tutorial3/CMyFilter1.h
   :language: c++
   :start-after: // [doc-filter-h-start]
   :end-before: // [doc-filter-h-end]

Custom filter 1 class implementation
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. literalinclude:: ../../../../cisstStereoVision/examples/tutorial3/CMyFilter1.cpp
   :language: c++
   :start-after: // [doc-filter-cpp-start]
   :end-before: // [doc-filter-cpp-end]

Main program
~~~~~~~~~~~~

.. literalinclude:: ../../../../cisstStereoVision/examples/tutorial3/main.cpp
   :language: c++
   :start-after: // [doc-main-start]
   :end-before: // [doc-main-end]