View source on GitHub |
Normalizes images.
tfm.vision.preprocess_ops_3d.normalize_image(
frames: tf.Tensor,
zero_centering_image: bool,
dtype: tf.dtypes.DType = tf.float32
) -> tf.Tensor
Args | |
---|---|
frames
|
A Tensor of numbers. |
zero_centering_image
|
If True, results are in [-1, 1], if False, results are in [0, 1]. |
dtype
|
Type of output Tensor. |
Returns | |
---|---|
A Tensor of same shape as the input and of the given type. |