Skip to main content

PreprocessMetaTemplate Struct

Preprocess metadata template attached to ingress buffers. More...

Declaration

struct simaai::neat::PreprocessMetaTemplate { ... }

Included Headers

#include <Input.h>

Public Member Attributes Index

boolenabled = false

If false, no preprocess metadata is emitted. More...

inttarget_width = 0

Model input width, in pixels. More...

inttarget_height = 0

Model input height, in pixels. More...

intscaled_width = 0

Width of the scaled content within the target frame. More...

intscaled_height = 0

Height of the scaled content within the target frame. More...

std::stringresize_mode = "none"

Resize/letterbox strategy label (none, fit, etc.). More...

intpad_value = 0

Pad fill value used by letterboxing. More...

std::stringcolor_in

Input color space label (e.g. RGB, BGR). More...

std::stringcolor_out

Output color space label after preprocess. More...

std::vector< int >axis_perm

Axis permutation applied by preprocess layout_convert, if any. More...

boolnormalize = false

True if preprocess applies normalization. More...

boolquantize = false

True if preprocess applies quantization. More...

booltessellate = false

True if preprocess applies tessellation. More...

Description

Preprocess metadata template attached to ingress buffers.

Annotates GstSimaMeta with affine/geometry context so downstream plugins (e.g. detection-box decoders) can map model outputs back to original frame coordinates.

Definition at line 35 of file Input.h.

Public Member Attributes

axis_perm

std::vector<int> simaai::neat::PreprocessMetaTemplate::axis_perm

Axis permutation applied by preprocess layout_convert, if any.

Definition at line 47 of file Input.h.

47 std::vector<int> axis_perm;

color_in

std::string simaai::neat::PreprocessMetaTemplate::color_in

Input color space label (e.g. RGB, BGR).

Definition at line 44 of file Input.h.

44 std::string color_in;

color_out

std::string simaai::neat::PreprocessMetaTemplate::color_out

Output color space label after preprocess.

Definition at line 45 of file Input.h.

45 std::string color_out;

enabled

bool simaai::neat::PreprocessMetaTemplate::enabled = false

If false, no preprocess metadata is emitted.

Definition at line 36 of file Input.h.

36 bool enabled = false;

normalize

bool simaai::neat::PreprocessMetaTemplate::normalize = false

True if preprocess applies normalization.

Definition at line 49 of file Input.h.

49 bool normalize = false;

pad_value

int simaai::neat::PreprocessMetaTemplate::pad_value = 0

Pad fill value used by letterboxing.

Definition at line 42 of file Input.h.

42 int pad_value = 0;

quantize

bool simaai::neat::PreprocessMetaTemplate::quantize = false

True if preprocess applies quantization.

Definition at line 50 of file Input.h.

50 bool quantize = false;

resize_mode

std::string simaai::neat::PreprocessMetaTemplate::resize_mode = "none"

Resize/letterbox strategy label (none, fit, etc.).

Definition at line 41 of file Input.h.

41 std::string resize_mode = "none";

scaled_height

int simaai::neat::PreprocessMetaTemplate::scaled_height = 0

Height of the scaled content within the target frame.

Definition at line 40 of file Input.h.

40 int scaled_height = 0;

scaled_width

int simaai::neat::PreprocessMetaTemplate::scaled_width = 0

Width of the scaled content within the target frame.

Definition at line 39 of file Input.h.

39 int scaled_width = 0;

target_height

int simaai::neat::PreprocessMetaTemplate::target_height = 0

Model input height, in pixels.

Definition at line 38 of file Input.h.

38 int target_height = 0;

target_width

int simaai::neat::PreprocessMetaTemplate::target_width = 0

Model input width, in pixels.

Definition at line 37 of file Input.h.

37 int target_width = 0;

tessellate

bool simaai::neat::PreprocessMetaTemplate::tessellate = false

True if preprocess applies tessellation.

Definition at line 51 of file Input.h.

51 bool tessellate = false;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.