Loading...
Searching...
No Matches
lwir_detection.h
Go to the documentation of this file.
57 * @brief Column of the first pixel (breadth-first order) holding the peak code; peak_y is its row.
129 uint32_t queue[LWIR_MAX_WIDTH * LWIR_MAX_HEIGHT]; ///< BFS queue; afterwards lists the component's pixels.
152bool lwir_detect_hotspots(const uint8_t *temperature, size_t bytes, unsigned width, unsigned height,
bool lwir_detect_hotspots(const uint8_t *temperature, size_t bytes, unsigned width, unsigned height, struct lwir_detection_workspace *workspace, struct lwir_hotspot_set *result)
Rank native thermal components without touching hardware, pose or files.
Definition lwir_detection.c:172
Native frame arithmetic and camera measurements; no codec or flight dependencies.
static uint16_t temperature(const uint8_t *frame, size_t pixels, size_t pixel)
Read one little-endian thermal code.
Definition lwir_render.c:63
Caller-owned scratch storage; never reserved by an imagery-only build.
Definition lwir_detection.h:127
uint8_t seen[(LWIR_MAX_WIDTH *LWIR_MAX_HEIGHT+7)/8]
One visited bit per pixel.
Definition lwir_detection.h:128
uint32_t histogram[UINT16_MAX+1U]
One bin per raw code, used for exact medians.
Definition lwir_detection.h:130
uint32_t queue[LWIR_MAX_WIDTH *LWIR_MAX_HEIGHT]
BFS queue; afterwards lists the component's pixels.
Definition lwir_detection.h:129
Bounded ranking, retaining the existing two-candidate mission policy.
Definition lwir_detection.h:93
bool tray_pass_selected
True when candidates came from the tray ranking.
Definition lwir_detection.h:96
struct lwir_hotspot candidates[2]
Best first; only the first count entries are valid.
Definition lwir_detection.h:94
double background_celsius
Median of valid (non-endpoint) codes; NaN when the plane has none.
Definition lwir_detection.h:97
size_t generic_count
All components that passed the contrast check, not only retained ones.
Definition lwir_detection.h:95
double threshold_celsius
Frame threshold actually applied; NaN when the plane has no valid codes.
Definition lwir_detection.h:97
A thermal component expressed only in native sensor coordinates.
Definition lwir_detection.h:39
size_t min_x
Inclusive native bounding box; likewise min_y, max_x and max_y.
Definition lwir_detection.h:41
size_t peak_x
Column of the first pixel (breadth-first order) holding the peak code; peak_y is its row.
Definition lwir_detection.h:42
double excess_celsius_pixels
Sum of per-pixel excess over local background, an integrated heat score.
Definition lwir_detection.h:45
double local_background_celsius
Median of sub-threshold pixels within a 5-pixel margin around the box.
Definition lwir_detection.h:45
double center_x
Subpixel centroid column weighted by excess over local background; center_y likewise.
Definition lwir_detection.h:43
double aspect_ratio
Longer bounding-box side divided by the shorter side (at least 1).
Definition lwir_detection.h:47
double contrast_celsius
Peak minus local background; components below 15 C are discarded.
Definition lwir_detection.h:45
bool touches_edge
Bounding box reaches a frame border, so the object may be truncated.
Definition lwir_detection.h:46
bool tray_like
Passed the compact, hot, high-contrast fire-tray heuristic.
Definition lwir_detection.h:46