qubee.calibration.preprocess.Normalize Class Reference

qubee.calibration.preprocess.Normalize Class Reference#

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

Apply mean/std normalization to images. More...

Public Member Functions

 __init__ (self, Union[List[float], np.ndarray] mean, Union[List[float], np.ndarray] std, bool to_float_div255=False)
 __call__ (self, np.ndarray img)

Public Attributes

 mean = np.float32(mean.reshape(1, -1))
 std = np.float32(std.reshape(1, -1))
 to_float_div255 = to_float_div255

Detailed Description

Apply mean/std normalization to images.

Parameters
meanlist[float] or np.ndarray. Normalization mean.
stdlist[float] or np.ndarray. Normalization standard deviation.
to_float_div255bool. Divide by 255 before normalization when True. Defaults to False.

Definition at line 455 of file preprocess.py.

Constructor & Destructor Documentation

◆ __init__()

qubee.calibration.preprocess.Normalize.__init__ ( self,
Union[List[float], np.ndarray] mean,
Union[List[float], np.ndarray] std,
bool to_float_div255 = False )

Definition at line 464 of file preprocess.py.

Member Function Documentation

◆ __call__()

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

Definition at line 487 of file preprocess.py.

Member Data Documentation

◆ mean

qubee.calibration.preprocess.Normalize.mean = np.float32(mean.reshape(1, -1))

Definition at line 482 of file preprocess.py.

◆ std

qubee.calibration.preprocess.Normalize.std = np.float32(std.reshape(1, -1))

Definition at line 484 of file preprocess.py.

◆ to_float_div255

qubee.calibration.preprocess.Normalize.to_float_div255 = to_float_div255

Definition at line 485 of file preprocess.py.


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