pytorch-debayer
pytorch-debayer copied to clipboard
Curiosity: Debayer5x5 gives black images for [0..255] values
Kind of a curiosity more than anything else, but all the other debayer modules operate fine on values which aren't [0..1] but the Debayer5x5 will output a black image unless the values are normalized.
Hey! True, didn't notice this difference between the methods. The 5x5 is the only method that clamps values before returning
https://github.com/cheind/pytorch-debayer/blob/master/debayer/modules.py#L333
I added this AFAIK as the kernels weren't scale preserving.