guided filter: properly validate radius parameter before calling boxblur
This commit is contained in:
@@ -35,8 +35,6 @@ 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;
|
||||
|
Reference in New Issue
Block a user