Fix filter_size not being used properly in filter

This commit is contained in:
Stephen Seo 2021-01-22 22:57:37 +09:00
parent 949aaecaa6
commit e483d99ea1

View file

@ -46,7 +46,7 @@ namespace internal {
std::size_t p_prime = (width + filter_size / 2 + x - p) % width;
bool pbp_value = pbp[twoToOne(p_prime, q_prime, width)];
if(pbp_value) {
sum += gaussian((double)p - width/2.0, (double)q - width/2.0);
sum += gaussian((double)p - filter_size/2.0, (double)q - filter_size/2.0);
}
}
}