Amaze Demosaic: Speedup, cleaned code, changed nyquist code

This commit is contained in:
heckflosse
2016-01-26 13:10:38 +01:00
parent 2017a0e592
commit ee665d6790
4 changed files with 418 additions and 420 deletions

View File

@@ -83,8 +83,8 @@ template<typename _Tp>
inline const _Tp intp(const _Tp a, const _Tp b, const _Tp c) {
// calculate a * b + (1 - a) * c
// following is valid:
// intp(a, b+x, c+x) = vintpf(a, b, c) + x
// intp(a, b*x, c*x) = vintpf(a, b, c) * x
// intp(a, b+x, c+x) = intp(a, b, c) + x
// intp(a, b*x, c*x) = intp(a, b, c) * x
return a * (b-c) + c;
}