I would like to know how to perform image whitening on a batch of images.
According to the documentation in https://www.tensorflow.org/api_docs/python/tf/image/per_image_standardization, it is said that tf.image.per_image_standardization
takes as input a 3D tensor, that is an image, of shape: [height, width, channels]
.
Is it a missing feature or there is a different method?
Any help is much appreciated.
For rotating an image or a batch of images counter-clockwise by multiples of 90 degrees, you can use tf. image. rot90(image,k=1,name=None) . k denotes the number of 90 degrees rotations you want to make.
This is how to perform this operation on a batch of images.
tf.map_fn(lambda frame: tf.image.per_image_standardization(frame), frames)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With