2-D digital filter

`Y = filter2(h,X)`

Y = filter2(h,X,* shape*)

`Y = filter2(h,X)`

filters
the data in `X`

with the two-dimensional FIR filter
in the matrix `h`

. It computes the result, `Y`

,
using two-dimensional correlation, and returns the central part of
the correlation that is the same size as `X`

.

`Y = filter2(h,X,`

returns
the part of * shape*)

`Y`

specified by the `shape`

parameter. `shape`

' | Returns the full two-dimensional correlation. In this
case, |

' | (default) Returns the central part of the correlation.
In this case, |

' | Returns only those parts of the correlation that are
computed without zero-padded edges. In this case, |

Was this topic helpful?