qubee.calibration.preprocess.Resize Class Reference

qubee.calibration.preprocess.Resize Class Reference#

Mobilint SDK qb Compiler: qubee.calibration.preprocess.Resize Class Reference
Mobilint SDK qb Compiler v0.11.0.1
MCS002-KR
qubee.calibration.preprocess.Resize Class Reference

Resize images with optional aspect-ratio preservation. More...

Public Member Functions

 __init__ (self, Union[float, Tuple[int, int]] img_scale, bool keep_ratio, str interpolation)
 __call__ (self, np.ndarray img)

Public Attributes

 img_scale = img_scale
 keep_ratio = keep_ratio
 interpolation = interpolation

Detailed Description

Resize images with optional aspect-ratio preservation.

Parameters
img_scalefloat or tuple[int, int]. Scaling factor or target size (h, w).
keep_ratiobool. Preserve aspect ratio when True. Defaults to False.
interpolationstring. Interpolation mode ("nearest", "bilinear", "bicubic", "area", or "lanczos").

Definition at line 515 of file preprocess.py.

Constructor & Destructor Documentation

◆ __init__()

qubee.calibration.preprocess.Resize.__init__ ( self,
Union[float, Tuple[int, int]] img_scale,
bool keep_ratio,
str interpolation )

Definition at line 524 of file preprocess.py.

Member Function Documentation

◆ __call__()

qubee.calibration.preprocess.Resize.__call__ ( self,
np.ndarray img )

Definition at line 535 of file preprocess.py.

Member Data Documentation

◆ img_scale

qubee.calibration.preprocess.Resize.img_scale = img_scale

Definition at line 531 of file preprocess.py.

◆ keep_ratio

qubee.calibration.preprocess.Resize.keep_ratio = keep_ratio

Definition at line 532 of file preprocess.py.

◆ interpolation

qubee.calibration.preprocess.Resize.interpolation = interpolation

Definition at line 533 of file preprocess.py.


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