ldvTile.cpp File Reference


Detailed Description

Several function to create a geometric panorama.

Author:
Copyright (C) 2007 Vincent Rabaud <vrabaud@cs.ucsd.edu>
Version:
1.2-20080501

#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
#include "ldvImgInfo.h"
#include "ldvOverlap.h"
#include "ldvTile.h"

Include dependency graph for ldvTile.cpp:


Functions

void saveImage (const string &fileName, IplImage *img)
 Save an image under a certain file name.
void drawImgInfo (const vector< ImgInfo > &vImgInfo, const CvMat *HGlobal, const vector< CvMat * > &HPanorama, IplImage *img, Match &match, bool doEdge)
 Draws pixels of value the number of the image.
void drawImgFeature (const vector< ImgInfo > &vImgInfo, const ImgInfo &imgInfo, const AllFeatureGlobal &allFeatureGlobal, const vector< CvMat * > &HPanorama, IplImage *pano)
 Applies the homography to the latest image and several random ones Could be done for all but done this way for speedups.
void writeOverlapToFile (vector< ImgInfo > &vImgInfo, unsigned int latestImg, string outputPath)
 Write the amount of overlap between an image and the previous one to a file.
void computePanorama (vector< ImgInfo > &vImgInfo, const AllFeatureGlobal &allFeatureGlobal, int latestImg, Match &match, string outputPath, bool doDisplay)
 Applies the homography to the latest image and several random ones Could be done for all but done this way for speedups.

Function Documentation

void saveImage ( const string &  fileName,
IplImage *  img 
)

Save an image under a certain file name.

Parameters:
fileName name of the image file
img image to save

Referenced by computePanorama().

Here is the caller graph for this function:

void drawImgInfo ( const vector< ImgInfo > &  vImgInfo,
const CvMat *  HGlobal,
const vector< CvMat * > &  HPanorama,
IplImage *  img,
Match match,
bool  doEdge 
)

Draws pixels of value the number of the image.

Parameters:
vImgInfo vector containing info about the images
HGlobal global homography to apply so that an image is at the center
HPanorama vector of homographies applied to the images
img image to which the info is written
match contains all the information concerning matches
doEdge flag indicating if white is drawn or the value of the pixel

References computeMask(), Match::getH(), and Match::getNReclaimed().

Referenced by computePanorama().

Here is the call graph for this function:

Here is the caller graph for this function:

void drawImgFeature ( const vector< ImgInfo > &  vImgInfo,
const ImgInfo imgInfo,
const AllFeatureGlobal allFeatureGlobal,
const vector< CvMat * > &  HPanorama,
IplImage *  pano 
)

Applies the homography to the latest image and several random ones Could be done for all but done this way for speedups.

Parameters:
vImgInfo vector containing info about the images
imgInfo info about the latest image
allFeatureGlobal all the FeatureGlobal
HPanorama vector of all the homograhies to apply to an image to form the panorama
pano image containing the panorama

References ImgInfo::afeature2, feature2::getFeatureGlobalInd(), feature2::getImgInd(), feature2::getImgInfo(), ImgInfo::isDone, ImgInfo::nfeature2, and AllFeatureGlobal::size().

Referenced by computePanorama().

Here is the call graph for this function:

Here is the caller graph for this function:

void writeOverlapToFile ( vector< ImgInfo > &  vImgInfo,
unsigned int  latestImg,
string  outputPath 
)

Write the amount of overlap between an image and the previous one to a file.

Parameters:
vImgInfo vector containing info about the images
latestImg latest image analyzed
outputPath path to the output results

References computeOverlap().

Referenced by computePanorama().

Here is the call graph for this function:

Here is the caller graph for this function:

void computePanorama ( vector< ImgInfo > &  vImgInfo,
const AllFeatureGlobal allFeatureGlobal,
int  latestImg,
Match match,
string  outputPath,
bool  doDisplay 
)

Applies the homography to the latest image and several random ones Could be done for all but done this way for speedups.

Parameters:
vImgInfo vector containing info about the images
allFeatureGlobal all the FeatureGlobal
latestImg latest image analyzed
match contains all the information concerning matches
outputPath path to the output results
doDisplay If true, display the panorama

References PrevPano::central, computeCornerExtrema(), DISPLAY_EDGE, drawImgFeature(), drawImgInfo(), PrevPano::HGlobal, N_IMAGE_REFRESH, PrevPano::pano, saveImage(), AllFeatureGlobal::size(), and writeOverlapToFile().

Here is the call graph for this function:


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