mimas::cgh_scene< T > Class Template Reference

Use this class for generating multiple cornerwise histograms from a given input image (scene). More...

#include <cgh_scene.h>

Inheritance diagram for mimas::cgh_scene< T >:

Inheritance graph
[legend]
Collaboration diagram for mimas::cgh_scene< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef boost::numeric::ublas::vector<
double
Vector
typedef std::string string
typedef std::ostringstream ostringstream
typedef std::ofstream ofstream

Public Member Functions

 cgh_scene ()
void setComparisonThreshold (double d)
void setCGHBinThreshold (double d)
cgh_wrapper_ptr_list getCGHList ()
void createFromImage (image< T > &im)
void createFromImage (image< T > &im, double contrast_thres)
 extract all corner features from the image.
cgh_wrapper_ptr_list crossCompare (cgh_scene &other)
 compare the histograms and provide output of the matches NOTE: nooooot symmetrical.
void createFromImageFixedPoints (image< T > &im)

Detailed Description

template<typename T>
class mimas::cgh_scene< T >

Use this class for generating multiple cornerwise histograms from a given input image (scene).

This tool can also be used for comparing / matching corner featuers in two scenes.

Author:
Stuart Meikle (mimas@stumeikle.com)
Date:
Sun May 12 20:31:50 2002
Header
/cvs/mimas2/include/cgh_scene.h,v 1.2 2005/09/07 13:27:28 engjw Exp

Definition at line 31 of file cgh_scene.h.


Member Typedef Documentation

template<typename T>
typedef boost::numeric::ublas::vector< double > mimas::cgh_scene< T >::Vector

Definition at line 34 of file cgh_scene.h.

template<typename T>
typedef std::string mimas::cgh_scene< T >::string

Definition at line 35 of file cgh_scene.h.

template<typename T>
typedef std::ostringstream mimas::cgh_scene< T >::ostringstream

Definition at line 36 of file cgh_scene.h.

template<typename T>
typedef std::ofstream mimas::cgh_scene< T >::ofstream

Definition at line 37 of file cgh_scene.h.


Constructor & Destructor Documentation

template<typename T>
mimas::cgh_scene< T >::cgh_scene (  )  [inline]

Definition at line 44 of file cgh_scene.h.


Member Function Documentation

template<typename T>
void mimas::cgh_scene< T >::setComparisonThreshold ( double  d  )  [inline]

Definition at line 62 of file cgh_scene.h.

template<typename T>
void mimas::cgh_scene< T >::setCGHBinThreshold ( double  d  )  [inline]

Definition at line 65 of file cgh_scene.h.

template<typename T>
cgh_wrapper_ptr_list mimas::cgh_scene< T >::getCGHList (  )  [inline]

Definition at line 69 of file cgh_scene.h.

template<typename T>
void mimas::cgh_scene< T >::createFromImage ( image< T > &  im  )  [inline]

Definition at line 74 of file cgh_scene.h.

template<typename T>
void mimas::cgh_scene< T >::createFromImage ( image< T > &  im,
double  contrast_thres 
) [inline]

extract all corner features from the image.

threshold based on 'contrast_thres' to reduce the numbers a little. then create CGHs for all that remain. current implementation returns a maximum of 500 histograms, contrast ordered, with the strongest contrast corner first.

Definition at line 84 of file cgh_scene.h.

References mimas::corner_tool< T >::filterImage(), mimas::edge_string_op::filterWiggles(), mimas::canny_tool< T >::findEdgeStrings(), mimas::const_image_ref< T, TPtr >::getHeight(), mimas::const_image_ref< T, T * >::getHeight(), mimas::const_image_ref< T, TPtr >::getWidth(), mimas::const_image_ref< T, T * >::getWidth(), mimas::image< T >::init(), and mimas::image_ref< T >::pixel().

Here is the call graph for this function:

template<typename T>
cgh_wrapper_ptr_list mimas::cgh_scene< T >::crossCompare ( cgh_scene< T > &  other  )  [inline]

compare the histograms and provide output of the matches NOTE: nooooot symmetrical.

Search for the best match of all corners in the first image in the second image. Not necessarily back again. NOTE2: the output contains pointers to data which is 'owned' by the views. so don't delete the data pointed to in the returned list

Definition at line 345 of file cgh_scene.h.

References mimas::cgh_scene< T >::cgh_list, and mimas::dotProduct().

Here is the call graph for this function:

template<typename T>
void mimas::cgh_scene< T >::createFromImageFixedPoints ( image< T > &  im  )  [inline]

Parameters:
im  experimental code, probably not much use

Definition at line 394 of file cgh_scene.h.

References mimas::canny_tool< T >::findEdgeStrings(), mimas::const_image_ref< T, T * >::getHeight(), and mimas::const_image_ref< T, T * >::getWidth().

Here is the call graph for this function:


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:26 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...