EduArt Sensor Ring Library 4.0.0
Loading...
Searching...
No Matches
eduart::sensorring::measurement::TemperatureImage Class Reference

Pseudo image structure for the converted temperatures of a thermal image. More...

#include <ThermalMeasurement.hpp>

Inheritance diagram for eduart::sensorring::measurement::TemperatureImage:
[legend]
Collaboration diagram for eduart::sensorring::measurement::TemperatureImage:
[legend]

Public Member Functions

GrayscaleImage toGrayscale (double t_min, double t_max) const
 Convert to grayscale with explicit temperature range.
GrayscaleImage toGrayscale () const
 Convert to grayscale using the automatic min/max of this image.
FalseColorImage toFalseColor (double t_min, double t_max) const
 Convert to a false-color image (iron palette) with explicit range.
FalseColorImage toFalseColor () const
 Convert to a false-color image (iron palette) using automatic min/max.
Public Member Functions inherited from eduart::sensorring::measurement::ScalarImage< double, THERMAL_RESOLUTION >
void copyTo (double *buffer, int size)
 Copy image data to a pre-allocated buffer.
double avg ()
 Calculate the average over all pixels.
ScalarImage & round ()
 Round each pixel value when a floating point type is used.
ScalarImage & operator/= (const double other)
 Divide each pixel by the same value.
ScalarImage & operator+= (const double other)
 Add the same value to each pixel.
ScalarImage & operator-= (const double other)
 Subtract the same value from each pixel.

Additional Inherited Members

Public Attributes inherited from eduart::sensorring::measurement::ScalarImage< double, THERMAL_RESOLUTION >
std::array< double, RESOLUTION > data
 Internal data structure for the image.

Detailed Description

Pseudo image structure for the converted temperatures of a thermal image.

Each pixel stores a temperature value in °C. Provides methods to convert to visualization images (grayscale or false-color iron palette).

Member Function Documentation

◆ toFalseColor() [1/2]

FalseColorImage eduart::sensorring::measurement::TemperatureImage::toFalseColor ( ) const

Convert to a false-color image (iron palette) using automatic min/max.

Returns
FalseColorImage (RGB, iron palette).

◆ toFalseColor() [2/2]

FalseColorImage eduart::sensorring::measurement::TemperatureImage::toFalseColor ( double t_min,
double t_max ) const

Convert to a false-color image (iron palette) with explicit range.

Parameters
[in]t_minTemperature mapped to the cold end of the palette.
[in]t_maxTemperature mapped to the hot end of the palette.
Returns
FalseColorImage (RGB, iron palette).

◆ toGrayscale() [1/2]

GrayscaleImage eduart::sensorring::measurement::TemperatureImage::toGrayscale ( ) const

Convert to grayscale using the automatic min/max of this image.

Returns
GrayscaleImage with pixels in [0, 255].

◆ toGrayscale() [2/2]

GrayscaleImage eduart::sensorring::measurement::TemperatureImage::toGrayscale ( double t_min,
double t_max ) const

Convert to grayscale with explicit temperature range.

Parameters
[in]t_minTemperature mapped to pixel value 0.
[in]t_maxTemperature mapped to pixel value 255.
Returns
GrayscaleImage with pixels in [0, 255].

The documentation for this class was generated from the following file: