ConvolveImage:

Path: Imaging/ImageProcessing

% Convolves an image with a mask. 
 The mask must be square. Some masks:

 Edge detection
 [0 1  0; 1 -4 1; 0 1 0]
 [1 0 -1; 0  0 0;-1 0 1]
 Identity
 [0 0 0; 0 1 0;0 0 0]
 Type ConvolveImage for a demo with the asteroid Bennu using box blur.

--------------------------------------------------------------------------
   Form:
    c = ConvolveImage(a,mask)
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   a              (n,m)        uint8, Grayscale image
   mask           (n,n)        Mask

   -------
   Outputs
   -------
   c              (n,m)        uint8, Convolved rayscale image

--------------------------------------------------------------------------

Children:

SC: SCData/Bennu
Common: Graphics/ColorMapGrayScale
Imaging: ImageData/SCImage
Imaging: ImageProcessing/Imager

Back to the Imaging Module page