qubee.calibration.preprocess.Pad Class Reference

qubee.calibration.preprocess.Pad Class Reference#

Mobilint SDK qb Compiler: qubee.calibration.preprocess.Pad Class Reference
Mobilint SDK qb Compiler v0.11.0.1
MCS002-EN
qubee.calibration.preprocess.Pad Class Reference

Pad images to a target shape or to meet a size divisor. More...

Public Member Functions

 __init__ (self, shape=None, int size_divisor=None, float pad_val=0.0, bool right_bottom=False)
 __call__ (self, np.ndarray img)

Public Attributes

 pad_val = pad_val
 size_divisor = size_divisor
 shape = shape
 right_bottom = right_bottom

Detailed Description

Pad images to a target shape or to meet a size divisor.

Parameters
shapetuple[int]. Expected output shape (h, w). Defaults to None.
size_divisorint. Ensures width and height are divisible by this value. Defaults to None.
pad_valfloat. Fill value used during padding. Defaults to 0.0.
right_bottombool. When True, pad on the right and bottom only. Defaults to False.

Definition at line 410 of file preprocess.py.

Constructor & Destructor Documentation

◆ __init__()

qubee.calibration.preprocess.Pad.__init__ ( self,
shape = None,
int size_divisor = None,
float pad_val = 0.0,
bool right_bottom = False )

Definition at line 420 of file preprocess.py.

Member Function Documentation

◆ __call__()

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

Definition at line 433 of file preprocess.py.

Member Data Documentation

◆ pad_val

qubee.calibration.preprocess.Pad.pad_val = pad_val

Definition at line 428 of file preprocess.py.

◆ size_divisor

qubee.calibration.preprocess.Pad.size_divisor = size_divisor

Definition at line 429 of file preprocess.py.

◆ shape

qubee.calibration.preprocess.Pad.shape = shape

Definition at line 430 of file preprocess.py.

◆ right_bottom

qubee.calibration.preprocess.Pad.right_bottom = right_bottom

Definition at line 431 of file preprocess.py.


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