59 void reset() noexcept;
70 bool fitsInRectangle(
int width,
int height,
int padding = 0) const noexcept;
92 std::uint64_t value = 0;
94 std::uint32_t count = 0;
150 int getWidth() const noexcept;
157 int getHeight() const noexcept;
168 OTC_SDK_API
float getTemperature(
int index) const;
183 OTC_SDK_API
float getTemperature(
int x,
int y) const;
225 OTC_SDK_API
void setTemperatureScaling(
float min,
float max);
232 OTC_SDK_API
float getTemperatureScalingMin() const noexcept;
239 OTC_SDK_API
float getTemperatureScalingMax() const noexcept;
251 OTC_SDK_API
float getTemperatureScalingMinFiltered() const noexcept;
259 OTC_SDK_API
float getTemperatureScalingMaxFiltered() const noexcept;
272 OTC_SDK_API
void setTemperatureScalingFilterFactor(
float filterFactor);
279 OTC_SDK_API
float getTemperatureScalingFilterFactor() const noexcept;
306 OTC_SDK_API
void setPalette(const std::
string& name);
313 OTC_SDK_API std::
string getPaletteName() const noexcept;
320 const
Image& getImage() noexcept;
327 int getImageSizeInBytes() const noexcept;
336 int getImageStride() const noexcept;
344 OTC_SDK_API
void copyImageDataTo(
unsigned char* destination,
int size) const noexcept;
355 OTC_SDK_API
void convertTemperatureToPaletteImage();
362 OTC_SDK_API
void convertTemperatureToPaletteImage(const
LookupTable& lut);
373 OTC_SDK_API
void convertTemperatureToPaletteImage(
void* destination,
int size);
378 static constexpr
float DEFAULT_TEMPERATURE_SCALING_FILTER_FACTOR = 0.96F;
382 void calculateIntegralImage();
385 void calcMinMaxScalingFactor();
388 void updateMinValue(
float filterFactor = 1.F);
391 void updateMaxValue(
float filterFactor = 1.F);
398 void calcSigmaScalingFactor(
float sigma);
405 void writeColorImage(
unsigned char* dest);
408 void updateBgraPalette() noexcept;
419 bool _integralIsDirty;
457 float _scalingFilterFactor;
460 std::
string _paletteName;
462 std::array<std::array<uint8_t, 3>, 240> _paletteColors;
466 std::array<std::uint32_t, 240> _paletteColorsBgra;
473 return _thermalFrame;
476inline int ImageBuilder::getWidth() const noexcept
481inline int ImageBuilder::getHeight() const noexcept
483 return _thermalFrame.getHeight();
496inline std::string ImageBuilder::getPaletteName() const noexcept
501inline const Image& ImageBuilder::getImage() noexcept
506inline int ImageBuilder::getImageSizeInBytes() const noexcept
508 return _imageInfo.
getHeight() * _imageInfo.getStride();
511inline int ImageBuilder::getImageStride() const noexcept
513 return _imageInfo.getStride();
Contains defines controlling the Windows DLL export and import of symbols.
Contains a class that encapsulates false color images.
Contains a class encapsulating a processed thermal frame.
OTC_SDK_API int getWidth() const noexcept
Returns the width in pixels of the frame.
Definition Frame.h:159
Creates false color images from thermal frames.
Definition ImageBuilder.h:111
std::array< unsigned int, 65536 > LookupTable
Type for look up tables.
Definition ImageBuilder.h:114
OTC_SDK_API ImageBuilder(ColorFormat colorFormat, WidthAlignment widthAlignment)
Constructor.
OTC_SDK_API void setThermalFrame(const ThermalFrame &thermalFrame)
Sets a new thermal frame.
Encapsulates all relevant information about a false color image.
Definition ImageInfo.h:60
Encapsulates false color images with 8-bit color depth.
Definition Image.h:37
OTC_SDK_API int getHeight() const noexcept
Returns the height of the image in pixels.
Definition Image.h:221
Converts temperatures in °C to and from their internal SDK representation.
Definition TemperatureConverter.h:23
Encapsulates processed thermal frame data.
Definition ThermalFrame.h:23
Main SDK namespace.
Definition AlarmChannel.h:21
ColorFormat
Represents the different available color formats.
Definition ImageInfo.h:32
TemperatureScalingMode
Represents the different mode to scale temperatures when generating a false color image.
Definition ImageBuilder.h:101
@ Sigma3
Same as Sigma1, but with factor 3.
@ MinMax
Dynamic determination of minimum and maximum temperature as upper and lower limit.
@ Manual
User-defined upper and lower limit (fixed values).
@ Sigma1
Dynamic determination of upper and lower limit from standard deviation of temperature image.
WidthAlignment
Represents the different available width alignments.
Definition ImageInfo.h:50
Helper struct for calculating an integral image.
Definition ImageBuilder.h:90
Characterizes a rectangular region by the indexes of the upper left and the lower right corners along...
Definition ImageBuilder.h:44
TemperatureRegion() noexcept
Constructor.