optris_sdk_region_sample
One pixel a region covered, kept so a caller can plot the profile the statistics were reduced from: the temperature along a line across a weld or a heater track.
A sample is one pixel, not a resampled point: exactly the pixels optris_sdk_region_stats was computed over, so the profile and the statistics can never disagree. Read them with optris_sdk_imager_read_region_samples() after asking for them with optris_sdk_region_set_want_samples().
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_region_sample).
value_c
float value_c
Temperature at this pixel, in the SDK's temperature unit (Celsius unless optris_sdk_set_temperature_unit() chose Fahrenheit), at the region's own emissivity when it has one.
NaN when the pixel was not measurable: the border radial distortion correction leaves in Wide mode, or a dropped pixel. The sample is still here, with its position and coordinates, so a chart draws a break rather than a straight line across the hole. NaN rather than a cold-looking sentinel: every comparison against NaN is false, so it cannot be plotted or averaged by accident. Such pixels are not in pixel_count, which is why that can be smaller than the sample count.
position
float position
Distance from the line's first endpoint, in region coordinates, so position * frame_width is the distance in pixels. The samples of a line region are ordered by it.
NaN when the region is not a single line segment. There is no honest distance-along an ellipse, a polygon or a boolean tree, and inventing one would be plotted as though it meant something. Samples of any other shape arrive in scan order (top to bottom, left to right), which pixel_x and pixel_y state exactly.
pixel_x
uint32_t pixel_x
column in the frame this came from
pixel_y
uint32_t pixel_y
row in the frame this came from