2021年3月29日星期一

Why doesn't my box blur the middle pixel of a kernel when I combine conditionals?

  1. Whenever I combine the conditionals the average of the middle pixel is calculated incorrectly But as soon as I separate the conditionals the averages of the pixels are correct.

     if (0 < i < (height - 1) && 0 < j < (width - 1))  
https://stackoverflow.com/questions/66864250/why-doesnt-my-box-blur-the-middle-pixel-of-a-kernel-when-i-combine-conditionals March 30, 2021 at 11:04AM

没有评论:

发表评论