And to generate any output element in a 2-D output array, we will go to the corresponding position in the, to the input array and apply the mask. align the center of the mask to that corresponding location and do a weighted sum of all the neighbor in this case all the 25 elements in that neighborhood and we're going to be doi ng. 