Skip to content

Calculation of indicators PSNR, SSIM and RMSE is different from other papers. #19

@xwt11

Description

@xwt11

Hello, I use the code of this project, and the calculated PSNR and SSIM are smaller than the results of other papers. The value of RMSE is large.

After denormalize_ function, the pixel value range of the image changes to [-1024,3072], but trunc function is used to directly change the pixel value greater than 240 to 240, and the pixel value less than -160 to -160.
Why the change? Why is the pixel value negative?

def denormalize_(self, image):
    image = image * (self.norm_range_max - self.norm_range_min) + self.norm_range_min
    return image


def trunc(self, mat):
    mat[mat <= self.trunc_min] = self.trunc_min
    mat[mat >= self.trunc_max] = self.trunc_max
    return mat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions