Reduce peak memory usage of guided filter by width * height * 8 byte
This commit is contained in:
parent
8eba1c40a6
commit
d1e3085932
@ -211,11 +211,13 @@ void guidedFilter(const array2D<float> &guide, const array2D<float> &src, array2
|
||||
f_mean(meanb, b, r1);
|
||||
DEBUG_DUMP(meanb);
|
||||
|
||||
blur_buf.resize(0); // frees W * H * 4 byte
|
||||
|
||||
array2D<float> meanA(W, H);
|
||||
f_upsample(meanA, meana);
|
||||
DEBUG_DUMP(meanA);
|
||||
|
||||
array2D<float> meanB(W, H);
|
||||
array2D<float> &meanB = q;
|
||||
f_upsample(meanB, meanb);
|
||||
DEBUG_DUMP(meanB);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user