# fernsClfApply

## PURPOSE

Apply learned fern classifier.

## SYNOPSIS

function [hs,probs] = fernsClfApply( data, ferns, inds )

## DESCRIPTION

     Apply learned fern classifier.

     USAGE
      [hs,probs] = fernsClfApply( data, ferns, [inds] )

     INPUTS
      data     - [NxF] N length F binary feature vectors
      ferns    - learned fern classification model
      inds     - [NxM] cached inds (from previous call to fernsInds)

     OUTPUTS
      hs       - [Nx1] predicted output labels
      probs    - [NxH] predicted output label probabilities

     EXAMPLE

     See also fernsClfTrain, fernsInds

     Piotr's Image&Video Toolbox      Version 2.50
     Copyright 2010 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:

- fernsInds Compute indices for each input by each fern.

This function is called by:

- fernsClfTrain Train random fern classifier.