Note: This page has been translated by MathWorks. Please click here

To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

Apply Gabor filter or set of filters to 2-D image

```
[mag, phase]
= imgaborfilt(A,wavelength,orientation)
```

`[mag, phase] = imgaborfilt(A,wavelength,orientation,Name,Value,...)`

```
[mag, phase]
= imgaborfilt(A,gaborbank)
```

`[`

computes the magnitude and phase response of a Gabor filter for the input grayscale
image `mag`

, `phase`

]
= imgaborfilt(`A`

,`wavelength`

,`orientation`

)`A`

. `wavelength`

describes the
wavelength in pixels/cycle of the sinusoidal carrier.
`orientation`

is the orientation of the filter in degrees.
The output `mag`

and `phase`

are the magnitude
and phase responses of the Gabor filter.

`[`

applies a single Gabor filter using name-value pairs to control various aspects of
filtering.`mag`

, `phase`

] = imgaborfilt(`A`

,`wavelength`

,`orientation`

,`Name,Value`

,...)

`[`

applies the array of Gabor filters, `mag`

, `phase`

]
= imgaborfilt(`A`

,`gaborbank`

)`gaborbank`

, to the input
image `A`

. `gaborbank`

is a
1-by-*p* array of Gabor objects, called a *filter
bank*. `mag`

and `phase`

are
image stacks where each plane in the stack corresponds to one of the outputs of the
filter bank. For inputs of size `A`

, the outputs
`mag`

and `phase`

contain the magnitude
and phase response for each filter in `gaborbank`

and are of size
*m*-by-*n*-by-*p*. Each plane
in the magnitude and phase responses,
`mag(:,:,ind),phase(:,:,ind)`

, is the result of applying the Gabor
filter of the same index, `gaborBank(ind)`

.

`edge`

| `fspecial`

| `gabor`

| `imfilter`

| `imgradient`

Was this topic helpful?