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" |
|
Legacy compatibility spelling. Prefer interpolation for new code. More... | |
| std::optional< ResizeInterpolation > | interpolation |
|
Typed sampler; omitted retains scaling_type and its legacy Bilinear default. More... | |
Description
Resize / letterbox / crop parameters.
Definition at line 101 of file PreprocessPlan.h.
Public Member Attributes
enable
|
On/off/auto.
Definition at line 102 of file PreprocessPlan.h.
height
|
Target height (px). 0 = inferred from contract.
Definition at line 104 of file PreprocessPlan.h.
interpolation
|
Typed sampler; omitted retains scaling_type and its legacy Bilinear default.
When set, the legacy default is ignored; a conflicting nondefault string is rejected.
Definition at line 111 of file PreprocessPlan.h.
mode
|
How to handle aspect-ratio mismatch.
Definition at line 105 of file PreprocessPlan.h.
pad_value
|
Pad fill value when mode == Letterbox (default 114, YOLO convention).
Definition at line 106 of file PreprocessPlan.h.
scaling_type
|
Legacy compatibility spelling. Prefer interpolation for new code.
Definition at line 108 of file PreprocessPlan.h.
width
|
Target width (px). 0 = inferred from contract.
Definition at line 103 of file PreprocessPlan.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.