The masking operation is performed by continuously sliding the mask on the image, until the center of the mask travels over all image pixels. At each mask location, image pixels are multiplied with corresponding mask values, and the results of all multiplications are added to produce the final result. The result is then assigned as a pixel value in a new, masked image.  
 
The masking operation is performed by continuously sliding the mask on the image, until the center of the mask travels over all image pixels. At each mask location, image pixels are multiplied with corresponding mask values, and the results of all multiplications are added to produce the final result. The result is then assigned as a pixel value in a new, masked image.  
   Exception encountered, of type "Error"