Fix filter_size not being used properly in filter
This commit is contained in:
parent
949aaecaa6
commit
e483d99ea1
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ namespace internal {
|
||||||
std::size_t p_prime = (width + filter_size / 2 + x - p) % width;
|
std::size_t p_prime = (width + filter_size / 2 + x - p) % width;
|
||||||
bool pbp_value = pbp[twoToOne(p_prime, q_prime, width)];
|
bool pbp_value = pbp[twoToOne(p_prime, q_prime, width)];
|
||||||
if(pbp_value) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue