pytorch-debayer icon indicating copy to clipboard operation
pytorch-debayer copied to clipboard

Curiosity: Debayer5x5 gives black images for [0..255] values

Open oliver-batchelor opened this issue 2 years ago • 1 comments

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.

oliver-batchelor avatar Jun 04 '22 09:06 oliver-batchelor

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.

cheind avatar Jun 04 '22 11:06 cheind