guided filter: fixed bug due to overlapping input and output arrays

This commit is contained in:
Alberto Griggio
2018-10-31 17:53:47 +01:00
parent 7090730063
commit fb97eeaa5a

View File

@@ -215,7 +215,7 @@ void guidedFilter(const array2D<float> &guide, const array2D<float> &src, array2
f_upsample(meanA, meana);
DEBUG_DUMP(meanA);
array2D<float> &meanB = q;
array2D<float> meanB(W, H);
f_upsample(meanB, meanb);
DEBUG_DUMP(meanB);