|
24 | 24 | * either License. |
25 | 25 | */ |
26 | 26 |
|
| 27 | +/** @file depth_packet_processor.h Depth processor definitions. */ |
| 28 | + |
27 | 29 | #ifndef DEPTH_PACKET_PROCESSOR_H_ |
28 | 30 | #define DEPTH_PACKET_PROCESSOR_H_ |
29 | 31 |
|
|
37 | 39 | namespace libfreenect2 |
38 | 40 | { |
39 | 41 |
|
| 42 | +/** Data packet with depth information. */ |
40 | 43 | struct LIBFREENECT2_API DepthPacket |
41 | 44 | { |
42 | 45 | uint32_t sequence; |
43 | 46 | uint32_t timestamp; |
44 | | - unsigned char *buffer; |
45 | | - size_t buffer_length; |
| 47 | + unsigned char *buffer; ///< Depth data. |
| 48 | + size_t buffer_length; ///< Size of depth data. |
46 | 49 | }; |
47 | 50 |
|
| 51 | +/** Class for processing depth information. */ |
48 | 52 | typedef PacketProcessor<DepthPacket> BaseDepthPacketProcessor; |
49 | 53 |
|
50 | 54 | class LIBFREENECT2_API DepthPacketProcessor : public BaseDepthPacketProcessor |
51 | 55 | { |
52 | 56 | public: |
| 57 | + /** Configuration of depth processing. */ |
53 | 58 | struct LIBFREENECT2_API Config |
54 | 59 | { |
55 | 60 | float MinDepth; |
56 | 61 | float MaxDepth; |
57 | | - |
58 | | - bool EnableBilateralFilter; |
59 | | - bool EnableEdgeAwareFilter; |
60 | | - |
| 62 | + |
| 63 | + bool EnableBilateralFilter; ///< Whether to run the bilateral filter. |
| 64 | + bool EnableEdgeAwareFilter; ///< Whether to run the edge aware filter. |
| 65 | + |
61 | 66 | Config(); |
62 | 67 | }; |
63 | 68 |
|
| 69 | + /** Parameters of depth processing. */ |
64 | 70 | struct LIBFREENECT2_API Parameters |
65 | 71 | { |
66 | 72 | float ab_multiplier; |
@@ -112,6 +118,7 @@ class LIBFREENECT2_API DepthPacketProcessor : public BaseDepthPacketProcessor |
112 | 118 | #ifdef LIBFREENECT2_WITH_OPENGL_SUPPORT |
113 | 119 | class OpenGLDepthPacketProcessorImpl; |
114 | 120 |
|
| 121 | +/** Depth packet processor using OpenGL. */ |
115 | 122 | class LIBFREENECT2_API OpenGLDepthPacketProcessor : public DepthPacketProcessor |
116 | 123 | { |
117 | 124 | public: |
@@ -142,6 +149,7 @@ class LIBFREENECT2_API OpenGLDepthPacketProcessor : public DepthPacketProcessor |
142 | 149 | // TODO: push this to some internal namespace |
143 | 150 | class CpuDepthPacketProcessorImpl; |
144 | 151 |
|
| 152 | +/** Depth packet processor using the CPU. */ |
145 | 153 | class LIBFREENECT2_API CpuDepthPacketProcessor : public DepthPacketProcessor |
146 | 154 | { |
147 | 155 | public: |
@@ -171,6 +179,7 @@ class LIBFREENECT2_API CpuDepthPacketProcessor : public DepthPacketProcessor |
171 | 179 | #ifdef LIBFREENECT2_WITH_OPENCL_SUPPORT |
172 | 180 | class OpenCLDepthPacketProcessorImpl; |
173 | 181 |
|
| 182 | +/** Depth packet processor using OpenCL. */ |
174 | 183 | class LIBFREENECT2_API OpenCLDepthPacketProcessor : public DepthPacketProcessor |
175 | 184 | { |
176 | 185 | public: |
|
0 commit comments