![]() |
Thermal Camera SDK 10.0.1
SDK for Optris Thermal Cameras
|
Characterizes a rectangular region by the indexes of the upper left and the lower right corners along with an associated temperature. More...
#include <ImageBuilder.h>
Public Member Functions | |
TemperatureRegion () noexcept | |
Constructor. | |
TemperatureRegion (int x1, int y1, int x2, int y2) noexcept | |
Constructor. | |
void | reset () noexcept |
Resets the temperature and the coordinates of the corners. | |
bool | fitsInRectangle (int width, int height, int padding=0) const noexcept |
Returns whether the region fits within a rectangle of the given dimensions. | |
Characterizes a rectangular region by the indexes of the upper left and the lower right corners along with an associated temperature.
Note that the origin of coordinates is located in upper left corner with the x-axis pointing right and the y-axis pointing downwards.
+---> x | v 1--------—+ y | | | | +--------—2
=> x1 <= x2 & y1 <= y2
|
noexcept |
Constructor.
[in] | x1 | x index of the upper left corner. |
[in] | y1 | y index of the upper left corner. |
[in] | x2 | x index of the lower right corner. |
[in] | y2 | y index of the lower right corner. |
|
noexcept |
Returns whether the region fits within a rectangle of the given dimensions.
[in] | width | in pixels of the rectangle to fit the region in. |
[in] | height | in pixels of the rectangle to fit the region in. |
[in] | padding | in pixels applied to the region in all directions during the check. |