Loading...
Searching...
No Matches
inference_image.h
Go to the documentation of this file.
19 * @brief Source-independent, bounded model preprocessing with reversible coordinate bookkeeping. */
30enum inference_pixel_format { INFERENCE_RGB8, INFERENCE_GRAY8, INFERENCE_YUV420, INFERENCE_KELVIN64 };
33/** @brief Explicit physical input domain; display brightness is never inferred to be a temperature. */
34enum inference_units { INFERENCE_PIXEL, INFERENCE_RAW_KELVIN64, INFERENCE_KELVIN, INFERENCE_CELSIUS };
inference_layout
Destination memory order, independent of source strides.
Definition inference_image.h:32
bool inference_image_point(const struct inference_image_transform *transform, double input_x, double input_y, double *source_x, double *source_y)
Map a model-input point back to source pixels, rejecting letterbox-only coordinates.
Definition inference_image.c:154
inference_units
Explicit physical input domain; display brightness is never inferred to be a temperature.
Definition inference_image.h:34
bool inference_image_prepare(const struct inference_image *image, const struct inference_image_spec *spec, void *tensor, size_t capacity, struct inference_image_transform *transform, char *error, size_t error_capacity)
Convert with the declared nearest-neighbor policy, not a guessed training transform.
Definition inference_image.c:69
inference_pixel_format
Accepted source layouts; Kelvin64 is little-endian native radiometric evidence.
Definition inference_image.h:30
Bounded tensor bindings and cooperative execution policy, independent of CAM semantics.
onnx_element_type
Supported numeric types; values match the ONNX Runtime C ABI.
Definition onnx_session.h:38
Model-owned preprocessing; normalized samples are (sample - mean) * scale.
Definition inference_image.h:45
Exact resized content rectangle, including rounded letterbox offsets.
Definition inference_image.h:55
Borrowed immutable planes; lengths/strides prove all addressed rows are available.
Definition inference_image.h:37