hfl_pixel.h
Go to the documentation of this file.
1 // Copyright 2020 Continental AG
2 // All rights reserved.
3 //
4 // Software License Agreement (BSD 2-Clause Simplified License)
5 //
6 // Redistribution and use in source and binary forms, with or without
7 // modification, are permitted provided that the following conditions
8 // are met:
9 //
10 // * Redistributions of source code must retain the above copyright
11 // notice, this list of conditions and the following disclaimer.
12 // * Redistributions in binary form must reproduce the above
13 // copyright notice, this list of conditions and the following
14 // disclaimer in the documentation and/or other materials provided
15 // with the distribution.
16 //
17 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
20 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
21 // COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22 // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
23 // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25 // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
27 // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 // POSSIBILITY OF SUCH DAMAGE.
29 
30 
36 
37 #ifndef HFL_PIXEL_H_
38 #define HFL_PIXEL_H_
39 
40 #include <iostream>
41 #include <vector>
42 
43 namespace hfl
44 {
46 using Slice = std::vector<uint16_t>;
47 
52 {
54  float range{ 0.0 };
55 
57  uint16_t intensity{ 0 };
58 };
59 
63 class Pixel
64 {
65 public:
72  Pixel(size_t returns_size, size_t slices_size);
73 
80  PixelReturn& atReturn(uint16_t x);
81 
88  uint16_t& atSlice(uint16_t x);
89 
90 private:
93 
95  std::vector<PixelReturn> returns_;
96 };
97 
98 } // namespace hfl
99 #endif // HFL_PIXEL_H_
float range
Return&#39;s range value.
Definition: hfl_pixel.h:54
Storages and handles the pixel data component.
Definition: hfl_pixel.h:63
uint16_t intensity
Return&#39;s intensity value.
Definition: hfl_pixel.h:57
std::vector< uint16_t > Slice
Pixel&#39;s Slice data type.
Definition: hfl_pixel.h:46
Data structure for pixel returns.
Definition: hfl_pixel.h:51
std::vector< PixelReturn > returns_
Pixel&#39;s returns data.
Definition: hfl_pixel.h:95
TFSIMD_FORCE_INLINE const tfScalar & x() const
Slice slices_
Slices data.
Definition: hfl_pixel.h:92


hfl_driver
Author(s): Evan Flynn , Maxton Ginier , Gerardo Bravo , Moises Diaz
autogenerated on Sat Mar 20 2021 02:27:31