Skip to main content

PreprocessOptions Struct

User-facing preprocess intent — what the application asks for. More...

Declaration

struct simaai::neat::PreprocessOptions { ... }

Included Headers

#include <PreprocessPlan.h>

Public Member Attributes Index

InputKindkind = InputKind::Auto

Whether inputs are images or pre-shaped tensors. More...

AutoFlagenable = AutoFlag::Auto

Master switch — set Off to skip preprocess entirely. More...

intinput_max_width = 0

Upper bound on input width (px); 0 = no bound. More...

intinput_max_height = 0

Upper bound on input height (px); 0 = no bound. More...

intinput_max_depth = 0

Upper bound on input channel count; 0 = no bound. More...

ResizeSpecresize

Resize / letterbox / crop intent. More...

ColorConvertSpeccolor_convert

Color-format conversion intent. More...

LayoutConvertSpeclayout_convert

Axis-permutation intent. More...

NormalizeSpecnormalize

Normalize intent. More...

QuantizeSpecquantize

Quantize intent. More...

TessellateSpectessellate

Tessellate intent. More...

std::vector< Transform >transforms

Ordered explicit transforms; if non-empty, overrides the per-stage specs above. More...

NormalizePresetpreset = ...

If non-None, supplies mean/stddev defaults. More...

Description

User-facing preprocess intent — what the application asks for.

The planner takes this plus the model's MPK manifest and produces a ResolvedPreprocessPlan. Most fields default to Auto/zero; set only what you need to override.

Definition at line 232 of file PreprocessPlan.h.

Public Member Attributes

color_convert

ColorConvertSpec simaai::neat::PreprocessOptions::color_convert

Color-format conversion intent.

Definition at line 241 of file PreprocessPlan.h.

enable

AutoFlag simaai::neat::PreprocessOptions::enable = AutoFlag::Auto

Master switch — set Off to skip preprocess entirely.

Definition at line 234 of file PreprocessPlan.h.

input_max_depth

int simaai::neat::PreprocessOptions::input_max_depth = 0

Upper bound on input channel count; 0 = no bound.

Definition at line 238 of file PreprocessPlan.h.

input_max_height

int simaai::neat::PreprocessOptions::input_max_height = 0

Upper bound on input height (px); 0 = no bound.

Definition at line 237 of file PreprocessPlan.h.

input_max_width

int simaai::neat::PreprocessOptions::input_max_width = 0

Upper bound on input width (px); 0 = no bound.

Definition at line 236 of file PreprocessPlan.h.

kind

InputKind simaai::neat::PreprocessOptions::kind = InputKind::Auto

Whether inputs are images or pre-shaped tensors.

Definition at line 233 of file PreprocessPlan.h.

layout_convert

LayoutConvertSpec simaai::neat::PreprocessOptions::layout_convert

Axis-permutation intent.

Definition at line 242 of file PreprocessPlan.h.

normalize

NormalizeSpec simaai::neat::PreprocessOptions::normalize

Normalize intent.

Definition at line 243 of file PreprocessPlan.h.

preset

NormalizePreset simaai::neat::PreprocessOptions::preset

If non-None, supplies mean/stddev defaults.

Initialiser

Definition at line 249 of file PreprocessPlan.h.

quantize

QuantizeSpec simaai::neat::PreprocessOptions::quantize

Quantize intent.

Definition at line 244 of file PreprocessPlan.h.

resize

ResizeSpec simaai::neat::PreprocessOptions::resize

Resize / letterbox / crop intent.

Definition at line 240 of file PreprocessPlan.h.

tessellate

TessellateSpec simaai::neat::PreprocessOptions::tessellate

Tessellate intent.

Definition at line 245 of file PreprocessPlan.h.

transforms

std::vector<Transform> simaai::neat::PreprocessOptions::transforms

Ordered explicit transforms; if non-empty, overrides the per-stage specs above.

Definition at line 247 of file PreprocessPlan.h.

247 std::vector<Transform> transforms;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.