A photo is a grid of pixels, each a brightness (0 = black). Take one row of it. Write blur(row): soften the row by mixing each pixel with its two neighbours. Return one value per pixel that has a neighbour on both sides, so a row of 6 pixels gives 4.