mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T > Class Template Reference
[Particle filter]

Performs a cross-correlation product on a part of the current image and a kernel image. More...

#include <correlation_observer2D.h>

Collaboration diagram for mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 correlation_observer2D (image< Pixel_T > &image, set co_set)
double convolvePoint (const int x, const int y) const
void set_correlation_observer_members (const int x, const int y)
void observe (Hypothesis_T &p)
void draw (const hypothesis2D &h)
 !I put the draw function in the observer at the moment as
void draw (std::vector< hypothesis2D > &hypotheses)

Public Attributes

image< intkernel_image
 for display purposes

Classes

class  set

Detailed Description

template<typename Hypothesis_T, typename Pixel_T>
class mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >

Performs a cross-correlation product on a part of the current image and a kernel image.

The kernel image can be taken in the first image according to the (x,y) location and window size given to the constructor.

This class has been designed as simple as possible to provide an example how to use the hypothesis filter. Optimisation using the fact that the kernel image is always the same to calculate the coeficient correlation can be easily implemented if needed.

See also:
corrcoef
Author:
Manuel Boissenin
Date:
june 2003
Time-stamp: <2004-08-02 22:50:40 engmb> Copyright (C) 2004 by Manuel Boissenin

Definition at line 40 of file correlation_observer2D.h.


Constructor & Destructor Documentation

template<typename Hypothesis_T, typename Pixel_T>
mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::correlation_observer2D ( image< Pixel_T > &  image,
set  co_set 
) [inline]

Definition at line 54 of file correlation_observer2D.h.

References mimas::image< T >::init(), mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::set::KER_H, mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::set::KER_W, mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::kernel_image, mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::set_correlation_observer_members(), mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::set::x, and mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::set::y.

Here is the call graph for this function:


Member Function Documentation

template<typename Hypothesis_T, typename Pixel_T>
double mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::convolvePoint ( const int  x,
const int  y 
) const

Definition at line 145 of file correlation_observer2D.h.

template<typename Hypothesis_T, typename Pixel_T>
void mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::set_correlation_observer_members ( const int  x,
const int  y 
)

Definition at line 186 of file correlation_observer2D.h.

Referenced by mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::correlation_observer2D().

template<typename Hypothesis_T, typename Pixel_T>
void mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::observe ( Hypothesis_T &  p  ) 

Definition at line 106 of file correlation_observer2D.h.

template<typename Hypothesis_T, typename Pixel_T>
void mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::draw ( const hypothesis2D h  )  [inline]

!I put the draw function in the observer at the moment as

Definition at line 73 of file correlation_observer2D.h.

References mimas::image_ref< T >::setPixel(), mimas::hf::hypothesis2D::x, and mimas::hf::hypothesis2D::y.

Referenced by mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::draw().

Here is the call graph for this function:

template<typename Hypothesis_T, typename Pixel_T>
void mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::draw ( std::vector< hypothesis2D > &  hypotheses  )  [inline]

Definition at line 87 of file correlation_observer2D.h.

References mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::draw().

Here is the call graph for this function:


Member Data Documentation

template<typename Hypothesis_T, typename Pixel_T>
image<int> mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::kernel_image

for display purposes

Definition at line 61 of file correlation_observer2D.h.

Referenced by mimas::hf::correlation_observer2D< Hypothesis_T, Pixel_T >::correlation_observer2D().


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:50 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...