Added an implementation of the Fast Guided Filter

derived directly from the pseudo-code of the paper:

 Fast Guided Filter
 by Kaiming He, Jian Sun

available at https://arxiv.org/abs/1505.00996
This commit is contained in:
Alberto Griggio
2018-10-03 15:09:49 +02:00
parent 39728c3286
commit 67adaeb0e2
4 changed files with 226 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ namespace rtengine
template<class T, class A> void boxblur (T** src, A** dst, int radx, int rady, int W, int H)
{
//box blur image; box range = (radx,rady)
radx = min(radx, W-1);
rady = min(rady, H-1);
AlignedBuffer<float>* buffer = new AlignedBuffer<float> (W * H);
float* temp = buffer->data;