An advise for a simple pixel prediction algorithm

Hi berak,
My goal is to eliminate the “edge effect”. At least I think this is the term. I am trying to filter an image with a mask. A convolution of each pixel with a 4 by 4 2d matrix. Problem is that for the border pixels there isnt a previous row and/or column or there isnt’t a next border or column according to which border we are speaking. In such a case either there is the need to predict outside pixels or to filter only the inner contents of the image and not the border pixels introducing the so called “edge effect” which I would like to avoid.

1 Like