pyiqa.archs.entropy_arch ======================== .. py:module:: pyiqa.archs.entropy_arch .. autoapi-nested-parse:: Entropy Metric for grayscale images. Entropy is a statistical measure of randomness that can be used to characterize the texture of the input image. Created by: Chaofeng Chen (https://github.com/chaofengc) Refer to: Matlab: https://www.mathworks.com/help/images/ref/entropy.html Module Contents --------------- .. py:function:: entropy(x, data_range=255.0, eps=1e-08, color_space='yiq') Compute entropy of a gray scale image. :param x: An input tensor. Shape :math:`(N, C, H, W)`. :returns: Entropy of the image. .. py:class:: Entropy(**kwargs) Bases: :py:obj:`torch.nn.Module` :param x: image tensor with shape (B, _, H, W), range [0, 1] :type x: torch.Tensor :returns: (B, 1) :rtype: score (torch.Tensor) .. py:method:: forward(x)