tf.image.per_image_standardization

tf.image.per_image_standardization

tf.image.per_image_standardization

per_image_standardization(image)

Defined in tensorflow/python/ops/image_ops_impl.py.

See the guide: Images > Image Adjustments

Linearly scales image to have zero mean and unit norm.

This op computes (x - mean) / adjusted_stddev, where mean is the average of all values in image, and adjusted_stddev = max(stddev, 1.0/sqrt(image.NumElements())).

stddev is the standard deviation of all values in image. It is capped away from zero to protect against division by 0 when handling uniform images.

Args:

  • image: 3-D tensor of shape [height, width, channels].

Returns:

The standardized image with same shape as image.

Raises:

  • ValueError: if the shape of 'image' is incompatible with this function.

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/image/per_image_standardization

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部