Skip to content

What kernel size does the Lanczos filter use? #5519

Answered by mattpodolak
mattpodolak asked this question in Q&A
Discussion options

You must be logged in to vote

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;
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@radarhere
Comment options

Answer selected by radarhere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants