# makefilter

## PURPOSE

makefilter - Make Gabor filters at fixed scale with norient orientations

## SYNOPSIS

function [allfilter, allsymbol] = makefilter(scale, norient)

## DESCRIPTION

     makefilter - Make Gabor filters at fixed scale with norient orientations

     "allfilter" contains all the Gabor sine and cosine pairs
     "allsymbol" contains bars for display purpose

## CROSS-REFERENCE INFORMATION

This function calls:

- gaborfilter gaborfilter - generate Gabor filter at fixed scale and orientation

This function is called by:

- ABlearn ABlearn - Learns an active basis template from images.
- adaboostLearn LearnAdaboostTemplate - Learns an adaboost "template", i.e. strong classifier.
- GetNaturalStat GetNaturalStat - Obtain statistics from natural images.

## SOURCE CODE

    0001 function [allfilter, allsymbol] = makefilter(scale, norient)
    0002 % makefilter - Make Gabor filters at fixed scale with norient orientations
    0003 %
    0004 % "allfilter" contains all the Gabor sine and cosine pairs
    0005 % "allsymbol" contains bars for display purpose
    0006
    0007 allorient  = (0:norient-1) * 180/norient;
    0008 allfilter = cell(1, norient);
    0009 allsymbol = cell(1, norient);
    0010 for o = 1 : norient
    0011      [allfilter{1, o}, allsymbol{1, o}] = gaborfilter(scale, allorient(o));
    0012 end
    0013
    0014
    0015
    0016
    0017
    0018