ClippedWindow
public readonly record struct ClippedWindow : IEquatable<ClippedWindow>
Where a clipped video format's window sits on the detector.
The fastest formats are not the whole detector. A PI 640's 640x120 @ 125 Hz reads 120 of its 480 rows, and that strip is a window onto the full readout. It can be moved: there is no reason the interesting part of the scene should be in the middle. In earlier releases the SDK centred it and offered no way to ask where it was, to move it, or to find out how far it could go.
This describes the active operation mode. Selecting a different one changes every property; a mode that reads the whole detector reports ClippedWindow.Clipped false with the rest zero.
Read it with ThermalCamera.GetClippedWindow, which succeeds on every camera whether or not one is open. Test ClippedWindow.Clipped before offering a control: it is ThermalCamera.SetClippedWindow(…) that throws.
ClippedWindow: properties
public bool Clipped { get; init; }
Whether the active mode is a clipped format at all. Every other property is zero when this is false.
public int DeviceHeight { get; init; }
Height of the full readout. The frame height is OperationMode.Height.
public int DeviceWidth { get; init; }
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 wherever ClippedWindow.MaxX is non-zero.
public int MaxX { get; init; }
Largest ClippedWindow.X this mode accepts.
Usually zero: a fast format drops rows rather than columns, so the window moves vertically only.
public int MaxY { get; init; }
Largest ClippedWindow.Y, under the same rule.
public int X { get; init; }
Left edge of the window within the full readout, in detector pixels.
public int Y { get; init; }
Top edge, same units.