For a vertical edge , we want to interpolate in horizontal direction by using only the column that is centered at the pixel .
For a horizontal edge , we want to interpolate in vertical direction , using only the column centered on the pixel .