Loading...
Searching...
No Matches
loom_features.h
Go to the documentation of this file.
59bool loom_features_pack(unsigned char *record, size_t capacity, const float *values, size_t count,
67bool loom_features_unpack(const unsigned char *record, size_t size, float *values, size_t capacity,
74 * @param sequence Source correlation, retained separately from any flight-controller shot number.
75 * @param sensor_timestamp_ns Physical sensor time when available; zero explicitly means unavailable.
77 * @pre Input tensors and destination do not overlap. This transport does not establish a visual match. */
78size_t loom_onnx_features_pack(unsigned char *record, size_t capacity, const struct inference_model *model,
80/** @brief Validate the exact binary layout and optionally require the same trained feature space.
84 * @param descriptor_sha256 Required preprocessing digest, or NULL for structural validation only.
85 * @return True for bounded finite features and matching supplied identities, not navigation validity. */
static int record(const union dc_shot_union *shot)
Retrieve a point and admit a new observation only when its credit is free.
Definition dipla_camera_backend.c:206
bool loom_features_pack(unsigned char *record, size_t capacity, const float *values, size_t count, const uint8_t *information, size_t information_size, uint64_t sequence, uint64_t sensor_timestamp_ns)
Pack validated same-exposure shapes, exact uint64 identities and float bits.
Definition loom_features.c:116
size_t loom_features_size(size_t count)
Required bytes for 1..4096 floats, or zero for unsupported counts.
Definition loom_features.c:100
bool loom_features_valid(const float *values, size_t count, const uint8_t *information, size_t information_size)
Validate finite features against the shared IMX500 shape metadata.
Definition loom_features.c:47
bool loom_features_unpack(const unsigned char *record, size_t size, float *values, size_t capacity, uint8_t *information, size_t information_size, size_t *count, uint64_t *sequence, uint64_t *sensor_timestamp_ns)
Validate and decode an exact-sized binary record into bounded output.
Definition loom_features.c:136
bool loom_onnx_features_valid(const unsigned char *record, size_t size, const char *model_sha256, const char *descriptor_sha256)
Validate the exact binary layout and optionally require the same trained feature space.
Definition loom_onnx_features.c:102
size_t loom_onnx_features_pack(unsigned char *record, size_t capacity, const struct inference_model *model, uint64_t sequence, uint64_t sensor_timestamp_ns)
Encode a complete LOOMOX01 record without fabricating an IMX500 metadata header.
Definition loom_onnx_features.c:39
bool loom_onnx_return_vector(const unsigned char *record, size_t size, const char *model_sha256, const char *descriptor_sha256, float values[3])
Decode an explicitly declared two/three-value return-vector record.
Definition loom_onnx_features.c:142
Parsed descriptor with self-referencing tensor-name pointers; do not copy after parsing.
Definition inference_model.h:31