ResizeSpec Struct
Resize / letterbox / crop parameters. More...
Declaration
Included Headers
Public Member Attributes Index
| AutoFlag | enable = AutoFlag::Auto |
|
On/off/auto. More... | |
| int | width = 0 |
|
Target width (px). 0 = inferred from contract. More... | |
| int | height = 0 |
|
Target height (px). 0 = inferred from contract. More... | |
| ResizeMode | mode = ResizeMode::Letterbox |
|
How to handle aspect-ratio mismatch. More... | |
| int | pad_value = 114 |
|
Pad fill value when mode == Letterbox (default 114, YOLO convention). More... | |
| std::string | scaling_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
|
height
|
Target height (px). 0 = inferred from contract.
Definition at line 100 of file PreprocessPlan.h.
mode
|
How to handle aspect-ratio mismatch.
Definition at line 101 of file PreprocessPlan.h.
pad_value
|
Pad fill value when mode == Letterbox (default 114, YOLO convention).
Definition at line 102 of file PreprocessPlan.h.
scaling_type
|
Sampler kind: "BILINEAR", "NEAREST", etc.
Definition at line 103 of file PreprocessPlan.h.
width
|
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.