Astra SDK  v2.1.3
Infrared.hpp
1 // This file is part of the Orbbec Astra SDK [https://orbbec3d.com]
2 // Copyright (c) 2015-2017 Orbbec 3D
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 // Be excellent to each other.
17 #ifndef ASTRA_INFRARED_HPP
18 #define ASTRA_INFRARED_HPP
19 
20 #include <astra_core/astra_core.hpp>
21 #include <astra/capi/astra_ctypes.h>
22 #include <astra/capi/streams/infrared_capi.h>
23 #include <astra/streams/Image.hpp>
24 #include <astra/Vector.hpp>
25 
26 namespace astra {
27 
39  class InfraredStream : public ImageStream
40  {
41  public:
42  explicit InfraredStream(astra_streamconnection_t connection)
43  : ImageStream(connection)
44  { }
45 
46  static const astra_stream_type_t id = ASTRA_STREAM_INFRARED;
47  };
48 
54  class InfraredFrame16 : public ImageFrame<uint16_t, ASTRA_STREAM_INFRARED>
55  {
56  public:
58  : ImageFrame(frame, ASTRA_PIXEL_FORMAT_GRAY16)
59  {}
60  };
61 
67  class InfraredFrameRgb : public ImageFrame<RgbPixel, ASTRA_STREAM_INFRARED>
68  {
69  public:
71  : ImageFrame(frame, ASTRA_PIXEL_FORMAT_RGB888)
72  {}
73  };
75 }
76 
77 #endif /* ASTRA_INFRARED_HPP */
Basic Image Frame
Definition: Image.hpp:397
ImageFrame(astra_imageframe_t frame, astra_pixel_format_t expected_format)
Default constructs
Definition: Image.hpp:405
basic Image Stream
Definition: Image.hpp:271
A Infrared Frame use 16bit unsigned short format.
Definition: Infrared.hpp:55
A Infrared Frame use rgb format.
Definition: Infrared.hpp:68
A Infrared Stream
Definition: Infrared.hpp:40
Definition: stream_types.h:37
Definition: astra_plugin.h:24