Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resizer ¶
type Resizer struct {
// contains filtered or unexported fields
}
Resizer defines the struct used for handling image resizing
func NewResizer ¶
NewResizer returns a resizer used for scaling an image to the needed dimensions for input tensor size
func (*Resizer) LetterBoxResize ¶
LetterBoxResize resizes the input image to the dimensions needed for the input tensor size whilst maintaining image aspect. Color is that used for letter box padding. this code is the conversion of C code function convert_image_with_letterbox()
func (*Resizer) ScaleFactor ¶
ScaleFactor returns the scale factor used in letterbox resize
Click to show internal directories.
Click to hide internal directories.