Closed pooya-mohammadi closed 1 year ago
Hi @pooya-mohammadi,
Thank you for raising the issue with a case, when images with more than 3 channels are processed.
Our implementation follows the original FSIM methods that is computed for 1-channel luminance component of images.
In practice, the greyscale images are processed as is. In case of RGB
images, we transfer the images into YIQ
colour space and use Y
component to deliver FSIM.
Unfortunately, it means that images with different number of channels or colour schemes cannot be processed by design.
However, if there is a way to retrieve luminance component from your n-channel input, you can use this component for FSIM computation using piq.fsim
.
I'm closing the issue. In case of any additional feedback, feel free to re-open the issue.
When I apply pig.fsim to images with more than 3 channels, I get the following error:
The code results in the above-mentioned error:
Is it possible to apply fsim to images with more than 3 channels? If it is possible, am I making a mistake or the feature is not implemented yet?