Classes | Functions
contrib/brl/bseg/bbgm/bbgm_apply.h File Reference

Apply functors to distribution images. More...

#include <vcl_cassert.h>
#include <vil/vil_image_view.h>
#include "bbgm_image_of.h"
#include "bbgm_planes_to_sample.h"
#include <vpdl/vpdt/vpdt_field_traits.h>

Go to the source code of this file.

Classes

struct  bbgm_apply_no_data< dist_, functor_, T, single_ >
 Apply the functor at every pixel. More...
struct  bbgm_apply_no_data< dist_, functor_, T, true >
struct  bbgm_apply_data< dist_, functor_, dT, rT, single_ >
 Apply the functor at every pixel. More...
struct  bbgm_apply_data< dist_, functor_, dT, rT, true >

Functions

template<class dist_ , class functor_ , class T >
void bbgm_apply (const bbgm_image_of< dist_ > &dimg, const functor_ &functor, vil_image_view< T > &result, const T *fail_val=0)
 Apply without data.
template<class dist_ , class functor_ , class dT , class rT >
void bbgm_apply (const bbgm_image_of< dist_ > &dimg, const functor_ &functor, const vil_image_view< dT > &data, vil_image_view< rT > &result, const rT *fail_val=0)
 Apply with data.

Detailed Description

Apply functors to distribution images.

Author:
Matt Leotta (mleotta@lems.brown.edu)
Date:
October 3, 2005
    Modifications
     Apr 21, 2009  MJL  Update to work with vpdt
   

Definition in file bbgm_apply.h.


Function Documentation

template<class dist_ , class functor_ , class T >
void bbgm_apply ( const bbgm_image_of< dist_ > &  dimg,
const functor_ &  functor,
vil_image_view< T > &  result,
const T *  fail_val = 0 
)

Apply without data.

Definition at line 110 of file bbgm_apply.h.

template<class dist_ , class functor_ , class dT , class rT >
void bbgm_apply ( const bbgm_image_of< dist_ > &  dimg,
const functor_ &  functor,
const vil_image_view< dT > &  data,
vil_image_view< rT > &  result,
const rT *  fail_val = 0 
)

Apply with data.

Definition at line 229 of file bbgm_apply.h.