如何对张量流中的一批图像执行tf.image.per_image_standardization

I. *_*. A 12 batch-processing tensorflow image-whitening

我想知道如何在一批图像上执行图像白化.

根据https://www.tensorflow.org/api_docs/python/tf/image/per_image_standardization中的文档,据说tf.image.per_image_standardization将形状的3D张量(即图像)作为输入[height, width, channels].

它是缺失的功能还是有不同的方法?

任何帮助深表感谢.

I. *_*. A 16

这是如何在一批图像上执行此操作.

tf.map_fn(lambda frame: tf.image.per_image_standardization(frame), frames)