colour-science / colour-demosaicing

CFA (Colour Filter Array) demosaicing algorithms for Python
https://www.colour-science.org
BSD 3-Clause "New" or "Revised" License
285 stars 58 forks source link

Menon demosaicing optimization. #2

Closed Zoldike closed 6 years ago

Zoldike commented 8 years ago

The convolutions can be optimized in the referenced code snippet. Two convolutions are sufficient using h0 + h1 as filter. https://github.com/colour-science/colour-demosaicing/blob/develop/colour_demosaicing/bayer/demosaicing/menon2007.py#L113-L114

KelSolaar commented 8 years ago

@Zoldike: Thanks! I'm not sure I will update that anytime soon, feel free to open a PR if you need / want.

Zoldike commented 8 years ago

Actually, I don't have Python on my computer. I've just watched your code because it was more understandable than the reference implementation provided by the authors. :)