The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

HypothesesPerScale Struct Reference

#include <mpiprobsearchaux.h>

Collaboration diagram for HypothesesPerScale:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HypothesesPerScale (const int numX, const int numY)
void makezero ()
void setParams (const double scale, const double shift, const int numX, const int numY)

Public Attributes

TIntegral< double > m_intimage
TIntegral< double > m_intones
int m_numX
int m_numY
double m_scale
double m_shift

Constructor & Destructor Documentation

HypothesesPerScale const int  numX,
const int  numY
[inline]
 

Definition at line 27 of file mpiprobsearchaux.h.

00027 : m_intimage(numX, numY), m_intones(numX, numY) {};


Member Function Documentation

void makezero  ) 
 

Definition at line 32 of file mpiprobsearchaux.cpp.

References TImage::getArray(), TIntegral::getIntNumPix(), m_intimage, and m_numX.

Referenced by ScalePyramid::makezero().

00032                                   {
00033         int numpix = m_numX * m_numY;
00034         memset(m_intimage.getArray(), 0, sizeof(double)*m_intimage.getIntNumPix());
00035 }

Here is the call graph for this function:

void setParams const double  scale,
const double  shift,
const int  numX,
const int  numY
 

Definition at line 16 of file mpiprobsearchaux.cpp.

References TIntegral::getImHeight(), TIntegral::getImWidth(), TIntegral::integrate(), m_intones, m_numX, m_numY, m_scale, m_shift, TIntegral::setImPixel(), and y.

Referenced by ScalePyramid::add_hypothesesPerScale().

00016                                                                                                           {
00017         m_scale = scale;
00018         m_shift = shift;
00019         m_numX = numX;
00020         m_numY = numY;          
00021 
00022         /* create image of ones to be of same dimensions as scale image */
00023         for (int y=0; y < m_intones.getImHeight(); y++) {
00024                 for (int x=0; x < m_intones.getImWidth(); x++)
00025                         m_intones.setImPixel(x, y, 1);
00026         }       
00027         m_intones.integrate();
00028 }

Here is the call graph for this function:


Member Data Documentation

TIntegral<double> m_intimage
 

Definition at line 24 of file mpiprobsearchaux.h.

Referenced by ScalePyramid::add_hypothesesPerScale(), makezero(), and MPColorFeatSearch::searchFeature().

TIntegral<double> m_intones
 

Definition at line 25 of file mpiprobsearchaux.h.

Referenced by MPColorFeatSearch::searchFeature(), and setParams().

int m_numX
 

Definition at line 22 of file mpiprobsearchaux.h.

Referenced by ScalePyramid::add_hypothesesPerScale(), makezero(), MPColorFeatSearch::searchFeature(), and setParams().

int m_numY
 

Definition at line 23 of file mpiprobsearchaux.h.

Referenced by ScalePyramid::add_hypothesesPerScale(), MPColorFeatSearch::searchFeature(), and setParams().

double m_scale
 

Definition at line 20 of file mpiprobsearchaux.h.

Referenced by MPColorFeatSearch::searchFeature(), and setParams().

double m_shift
 

Definition at line 21 of file mpiprobsearchaux.h.

Referenced by setParams().


The documentation for this struct was generated from the following files:
Generated on Mon Nov 8 17:08:32 2004 for MPT by  doxygen 1.3.9.1