Thermal Camera SDK 10.1.1
SDK for Optris Thermal Cameras
Loading...
Searching...
No Matches
Slope.h
Go to the documentation of this file.
1// Copyright (c) 2008-2025 Optris GmbH & Co. KG
2
10
11#pragma once
12
13#include <ostream>
14
15
16namespace optris
17{
18
24class Slope
25{
26public:
28 Slope() noexcept;
29
36 Slope(float gain, float offset) noexcept;
37
38
40 float gain;
42 float offset;
43};
44
45
46// Utility functions
55std::ostream& operator<<(std::ostream& out, const Slope& slope) noexcept;
56
57
58// Inline implementations
59inline Slope::Slope() noexcept
60 : gain{1.F}
61 , offset{0.F}
62{}
63
64inline Slope::Slope(float gain, float offset) noexcept
65 :gain{gain}
66 , offset{offset}
67{}
68
69inline std::ostream& operator<<(std::ostream& out, const Slope& slope) noexcept
70{
71 return (out << "gain: " << slope.gain << ", offset: " << slope.offset);
72}
73
74} // namespace optris
Encapsulates the parameters of a linear transformation.
Definition Slope.h:25
float offset
Offset of the linear transformation.
Definition Slope.h:42
float gain
Gain of the linear transformation.
Definition Slope.h:40
Slope() noexcept
Constructor.
Definition Slope.h:59
Main SDK namespace.
Definition DeviceInfo.h:24
OTC_SDK_API std::ostream & operator<<(std::ostream &out, DeviceType deviceType) noexcept
Output stream operator for device types.