optris::sdk::ClippedWindow
Where a clipped video format's window sits on the detector, and how far it can be moved.
Some of the fastest formats are not the whole detector. A PI 640's 640x120 @ 125 Hz reads 120 of its 480 rows; the camera streams that strip and nothing else, which is how it reaches the frame rate. The strip is a window onto the full readout, and it can be moved; there is no reason the interesting part of the scene should be in the middle.
Until now it always was. The SDK centred the window when it read the format definition and offered no way to ask where it was or to put it anywhere else.
Read this with Imager::GetClippedWindow() and move it with Imager::SetClippedWindow(). Both describe the active operation mode: selecting a different one changes every field here, and a mode that is not clipped reports clipped == false with the rest zero.
Public attributes
clipped
bool clipped = false
Whether the active mode is a clipped format at all. When false, every other field is zero and SetClippedWindow() refuses.
x
int x = 0
Left edge of the window within the full readout, in detector pixels.
y
int y = 0
Top edge, same units.
max_x
int max_x = 0
Largest x this mode accepts: device_width less the frame width. Zero when the window spans the full width, which is the usual case; a fast format normally drops rows, not columns, so the window moves vertically only.
max_y
int max_y = 0
Largest y, under the same rule.
device_width
int device_width = 0
Width of the full readout this window sits in. Not the frame width: that is OperationMode::width, and it is the smaller of the two whenever max_x is non-zero.
device_height
int device_height = 0
Height of the full readout. The frame height is OperationMode::height.