guided filter: proper bounding of the radius before calling boxblur

This commit is contained in:
Alberto Griggio
2018-10-11 13:41:41 +02:00
parent 02a15bc58d
commit f5d566ef22
2 changed files with 3 additions and 1 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)
assert(2*radx+1 < W);
assert(2*rady+1 < H);
AlignedBuffer<float>* buffer = new AlignedBuffer<float> (W * H);
float* temp = buffer->data;