본문으로 건너뛰기

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.

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.

scaling_type​

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

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

Definition at line 103 of file PreprocessPlan.h.

width​

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

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

Definition at line 99 of file PreprocessPlan.h.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.