# FbApply2d

## PURPOSE

Applies each of the filters in the filterbank FB to the image I.

## SYNOPSIS

function FR = FbApply2d( I, FB, shape, show )

## DESCRIPTION

     Applies each of the filters in the filterbank FB to the image I.

     To apply to a stack of images:
      IFS = fevalArrays( images, @FbApply2d, FB, 'valid' );

     USAGE
      FR = FbApply2d( I, FB, [shape], [show] )

     INPUTS
      I       - 2D input array
      FB      - filterbank - MxNxK set of K filters each of size MxN
      shape   - ['full'] option for conv2 'full', 'same', 'valid'
      show    - [0] first figure to use for optional display

     OUTPUTS
      FR      - 3D set of filtered images

     EXAMPLE
      load trees;  X=imresize(X,.5);  load FbDoG.mat;
      FR = FbApply2d( X, FB, 'same', 1 );

     See also CONV2, FBMAKE

     Piotr's Image&Video Toolbox      Version 2.0
     Copyright 2008 Piotr Dollar.  [pdollar-at-caltech.edu]
     Please email me if you find bugs, or have suggestions or questions!
     Licensed under the Lesser GPL [see external/lgpl.txt]

## CROSS-REFERENCE INFORMATION

This function calls:

- im Function for displaying grayscale images.
- montage2 Used to display collections of images and videos.

This function is called by:

- FbReconstruct2d Use to see how much image information is preserved in filter outputs.