OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Python API referencev12.0

ColorWindow

class optris_sdk.isotherms.ColorWindow

One temperature band, and how it is drawn.

min_c and max_c are temperatures in the SDK's temperature unit (Celsius unless optris_sdk.set_temperature_unit chose Fahrenheit). Both are inclusive, and the colours are stretched across them -- so widening a band admits more pixels and flattens the gradient over the ones already in it. A max_c below min_c colours nothing rather than inverting the ramp.

colors is a sequence of optris_sdk.palettes.Color, or of any (r, g, b) triple, coldest first, and overrides palette for this band. One entry is a solid colour -- the marker band that reads as a flag rather than as a gradient -- and a table handed over end-for-end is a reversed ramp, which is how a cold band is made to read as cold.

ColorWindow — properties

min_c

max_c

palette

opacity

motion_only

Whether the band is masked to where motion was detected.

Needs at least one motion zone. With none there is no mask and such a band draws nothing, so this being true is not on its own enough for anything to appear.

color_count

How many entries the band's own ramp has, or 0 for none.

Readable on a band that came back from ColorWindows.read, where the table itself is not carried: this is what tells a ramped band from a palette one without a second call.

colors_from

Where this band takes its colours from.

One of COLOR_WINDOW_COLORS_PALETTE, COLOR_WINDOW_COLORS_TABLE or COLOR_WINDOW_COLORS_KEEP.

ColorWindow — methods

__repr__()