ImgInfo Struct Reference

#include <ldvImgInfo.h>

Collaboration diagram for ImgInfo:

Collaboration graph
[legend]

List of all members.


Detailed Description

Holds several information particular to one image.

Public Member Functions

 ImgInfo (const string pathIn, int indIn)
 Constructor.
void release (AllFeatureGlobal &allFeatureGlobal)
 Free the memory in ImgInfo.
void setImgInd (unsigned int indIn)
 Set the index of the features to the one of the image it belongs to.
void computeCornerPosition (void)
 compute the corner positions in order 02 13
void setH (const CvMat *HIn)
 Set H.
void setHToIdentity (void)
 Set H to identity.
void setHInv (const CvMat *HInvIn)
 Set HInv.
const CvMat * getH (void) const
 Get H.
const CvMat * getHInv (void) const
 Get HInv.
CvPoint getCenter (void) const
 Get the center of the image transformed by H.
CvPoint getCenter (const CvMat *HIn) const
 Get the center of the image transformed by H.
bool canOverlap (const ImgInfo &imgInfo) const
 True if it can overlap imgInfo.

Public Attributes

string path
 Path to the image.
unsigned int ind
 index of the image
unsigned int widthOri
 original width
unsigned int heightOri
 original height
unsigned int width
 width after resize
unsigned int height
 height after resize
bool isDone
 true if the images has been analyzed
bool isEdge
 true if on the edge of the current panorama
bool isNew
 true if the image is new (SIFT has not been performed)
bool isOrphan
 true if it is linked to a COMPLETED image
bool isSmall
 true if an image is not resized for analysis
vector< double > cornerX
 list of X coord of the corners
vector< double > cornerY
 list of Y coord of the corners
double cornerXMin
 X min of the corners.
double cornerXMax
 X max of the corners.
double cornerYMin
 Y min of the corners.
double cornerYMax
 Y max of the corners.
feature2afeature2
 array of SIFT features
unsigned int nfeature2
 Size of the above array.
kd_node * kdTree
 tree containing all the features

Constructor & Destructor Documentation

ImgInfo::ImgInfo ( const string  pathIn,
int  indIn 
) [explicit]

Constructor.

Parameters:
pathIn Path to the image
indIn index of the image


Member Function Documentation

void ImgInfo::setImgInd ( unsigned int  indIn  ) 

Set the index of the features to the one of the image it belongs to.

Parameters:
indIn index of the image the feature belongs to

References afeature2, ind, and nfeature2.

void ImgInfo::setH ( const CvMat *  HIn  ) 

Set H.

Parameters:
HIn input H

References computeCornerPosition().

Referenced by computeGlobalHomography().

Here is the call graph for this function:

Here is the caller graph for this function:

void ImgInfo::setHInv ( const CvMat *  HInvIn  ) 

Set HInv.

Parameters:
HInvIn input HInv

References computeCornerPosition().

Here is the call graph for this function:

bool ImgInfo::canOverlap ( const ImgInfo imgInfo  )  const

True if it can overlap imgInfo.

Parameters:
imgInfo ImgInfo to compare to

References cornerXMax, cornerXMin, cornerYMax, and cornerYMin.


The documentation for this struct was generated from the following files:

Generated on Tue Feb 17 12:47:14 2009 for LDV by  doxygen 1.5.6