ldvOverlap.cpp File Reference


Detailed Description

Set of functions to compute the overlap between an image and other warped images.

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

#include <algorithm>
#include "ldvImgInfo.h"
#include "ldvOverlap.h"

Include dependency graph for ldvOverlap.cpp:


Functions

unsigned int computeCornerExtrema (const vector< ImgInfo > &vImgInfo, int &minX, int &maxX, int &minY, int &maxY)
 compute the corner extrema of several images.
void computeMask (unsigned int width, unsigned int height, const CvMat *const H, IplImage *mask, int nTile)
 Draw a rectangle in an image (if nTile<0, only a white rectangle, otherwise, just the contour of the rectangle).
void computeOverlap (const vector< ImgInfo > &vImgInfo, unsigned int imgInd, vector< OverlapInfo > &vOverlapInfo)
 compute the corner positions of several images.

Function Documentation

unsigned int computeCornerExtrema ( const vector< ImgInfo > &  vImgInfo,
int &  minX,
int &  maxX,
int &  minY,
int &  maxY 
)

compute the corner extrema of several images.

Parameters:
vImgInfo vector containing all the information
minX minimal X coordinate of a corner
maxX maximal X coordinate of a corner
minY minimal Y coordinate of a corner
maxY maximal Y coordinate of a corner

References OverlapInfo::i.

Referenced by computeGlobalHomography(), and computePanorama().

Here is the caller graph for this function:

void computeMask ( unsigned int  width,
unsigned int  height,
const CvMat *const   H,
IplImage *  mask,
int  nTile 
)

Draw a rectangle in an image (if nTile<0, only a white rectangle, otherwise, just the contour of the rectangle).

Parameters:
width width of the image to transform
height height of the image to transform
H homography to apply to the image
mask image where the rectangle will be drawn
nTile to be displayed in hte rectangle

References OverlapInfo::i.

Referenced by computeOverlap(), and drawImgInfo().

Here is the caller graph for this function:

void computeOverlap ( const vector< ImgInfo > &  vImgInfo,
unsigned int  imgInd,
vector< OverlapInfo > &  vOverlapInfo 
)

compute the corner positions of several images.

Also return the extrema of these coordinates

Parameters:
vImgInfo vector containing all the information
imgInd id of the current image to analyze
vOverlapInfo vector containing info about the different overlaps

References computeMask(), OverlapInfo::j, and OverlapInfo::OverlapInfo().

Referenced by compareAllSIFT(), and writeOverlapToFile().

Here is the call graph for this function:

Here is the caller graph for this function:


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