79 for (
int y = 0; y < image.
getHeight(); ++y) {
80 for (
int x = 0; x < image.
getWidth(); ++x) {
81 auto box =
getBox(image, x, y);
84 if (std::abs(median - value) >= threshold) {
85 out_img->setValue(x, y, median);
86 auto var_box =
getBox(variance, x, y);
87 out_var->setValue(x, y,
getMedian(var_box));
90 out_img->setValue(x, y, value);
91 out_var->setValue(x, y, variance.
getValue(x, y));