What kernel size does the Lanczos filter use? #5519
Answered
by
mattpodolak
mattpodolak
asked this question in
Q&A
-
I am taking a look through the documentation and I don't see any mention of the kernel size used for the Lanczos filter for resizing. Does anyone have any insights into this? |
Beta Was this translation helpful? Give feedback.
Answered by
mattpodolak
May 31, 2021
Replies: 1 comment 1 reply
-
Looking at the C code it looks like it should be a kernel size of 3: lanczos_filter(double x) {
/* truncated sinc */
if (-3.0 <= x && x < 3.0) {
return sinc_filter(x) * sinc_filter(x / 3);
}
return 0.0;
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
radarhere
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looking at the C code it looks like it should be a kernel size of 3: