HPCE / hpce-2017-cw5

1 stars 6 forks source link

Gaussian Blur CreateInput bug #10

Closed pufik1337 closed 6 years ago

pufik1337 commented 6 years ago

It looks like the CreateInput function of the Gaussian Blur puzzle only creates vectors where all values are 0. On line 162 of gaussian_blur.hpp:

t=std::min(0.0f, std::max(1.0f, t));

This can be fixed by swapping the min and max functions.

m8pple commented 6 years ago

Ah - that one I didn't notice because I use different code to generate the inputs for that puzzle (as I was testing it on images and looking at the output - though I didn't notice they were getting darker, which would have highlighted #6 ).

So fortunately not a breaking change, but thanks for spotting.

BTW, it's great the way you're digging deep in this way, particularly looking into the actual values going past.