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

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. | |
| void saveImage | ( | const string & | fileName, | |
| IplImage * | img | |||
| ) |
Save an image under a certain file name.
| fileName | name of the image file | |
| img | image to save |
Referenced by computePanorama().

| 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.
| 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().


| 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.
| 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().


| 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.
| vImgInfo | vector containing info about the images | |
| latestImg | latest image analyzed | |
| outputPath | path to the output results |
References computeOverlap().
Referenced by computePanorama().


| 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.
| 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().

1.5.6