Skip to content

Images with more than 3 channels #27

Answered by francois-rozet
ldv1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @ldv1,

Indeed, SSIM, PSNR and TV don't impose a specific number of channels as the computed quantities are averaged over the channels. However, all other metrics rely on the chromatic (e.g. RGB) decomposition of pixels.

For SSIM, as mentioned in the documentation (see https://francois-rozet.github.io/piqa/piqa.ssim.html#piqa.ssim.SSIM) and in a previous discussion (#22), the number of expected channels can be modified with the n_channels parameter.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ldv1
Comment options

Answer selected by francois-rozet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
duplicate This issue or pull request already exists
2 participants
Converted from issue

This discussion was converted from issue #26 on April 01, 2022 12:54.