Images with more than 3 channels #27
-
Hi, Some metrics (like SSIM) could be extended to 2D tensors (images) with more than 3 channels as the metrics are computed on a channel basis and then averaged over the channels. Is this the case in PIQA? Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @ldv1, Indeed, For |
Beta Was this translation helpful? Give feedback.
Hello @ldv1,
Indeed,
SSIM
,PSNR
andTV
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 then_channels
parameter.