mindspore/docs/api/api_python/dataset_vision/mindspore.dataset.vision.In...

10 lines
324 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.dataset.vision.Invert
===============================
.. py:class:: mindspore.dataset.vision.Invert()
在 RGB 模式下对输入图像应用像素反转。将每一个像素重新赋值为255 - pixel
异常:
- **RuntimeError** - 如果输入图像的shape不是 <H, W, C>。