Skip to main content

ResizeSpec Struct

Resize / letterbox / crop parameters. More...

Declaration

struct simaai::neat::ResizeSpec { ... }

Included Headers

#include <PreprocessPlan.h>

Public Member Attributes Index

AutoFlagenable = AutoFlag::Auto

On/off/auto. More...

intwidth = 0

Target width (px). 0 = inferred from contract. More...

intheight = 0

Target height (px). 0 = inferred from contract. More...

ResizeModemode = ResizeMode::Letterbox

How to handle aspect-ratio mismatch. More...

intpad_value = 114

Pad fill value when mode == Letterbox (default 114, YOLO convention). More...

std::stringscaling_type = "BILINEAR"

Sampler kind: "BILINEAR", "NEAREST", etc. More...

Description

Resize / letterbox / crop parameters.

Definition at line 97 of file PreprocessPlan.h.

Public Member Attributes

enable

AutoFlag simaai::neat::ResizeSpec::enable = AutoFlag::Auto

On/off/auto.

Definition at line 98 of file PreprocessPlan.h.

height

int simaai::neat::ResizeSpec::height = 0

Target height (px). 0 = inferred from contract.

Definition at line 100 of file PreprocessPlan.h.

100 int height = 0;

mode

ResizeMode simaai::neat::ResizeSpec::mode = ResizeMode::Letterbox

How to handle aspect-ratio mismatch.

Definition at line 101 of file PreprocessPlan.h.

pad_value

int simaai::neat::ResizeSpec::pad_value = 114

Pad fill value when mode == Letterbox (default 114, YOLO convention).

Definition at line 102 of file PreprocessPlan.h.

102 int pad_value = 114;

scaling_type

std::string simaai::neat::ResizeSpec::scaling_type = "BILINEAR"

Sampler kind: "BILINEAR", "NEAREST", etc.

Definition at line 103 of file PreprocessPlan.h.

103 std::string scaling_type = "BILINEAR";

width

int simaai::neat::ResizeSpec::width = 0

Target width (px). 0 = inferred from contract.

Definition at line 99 of file PreprocessPlan.h.

99 int width = 0;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.