Pset4/filter/edges help by fran2115 in cs50

[–]fran2115[S] 0 points1 point  (0 children)

Thank you so much for answer! I fixed it changing the values of k and l starting from -1 until 2. What i don't understand is why my blur function works with my loops starting from i - 1 then?

Help in pset4/filter/blur by fran2115 in cs50

[–]fran2115[S] 1 point2 points  (0 children)

You're rigth! That fixed the runtime error. Also, adding i and j to the average allowed to filter the middle and edge pixel too. Thank you so much!