ldvFile.cpp File Reference


Detailed Description

Defines different functions related to file handling.

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

#include <algorithm>
#include <dirent.h>
#include <cctype>
#include <fstream>
#include <string>
#include <set>
#include <QtGui/QtGui>
#include <QtGui/QApplication>
#include <QtGui/QMainWindow>
#include "ldvFile.h"
#include "ldvImgInfo.h"
#include "ldvSBA.h"

Include dependency graph for ldvFile.cpp:


Classes

class  PossibleExtension
 Simple class storing the possible extensions. More...

Functions

bool isImagePath (const string &imagePath)
 Returns yes if the string is the path of an image (only based on the extension) (basically true if jpg, jpeg, tif, tiff, png, bmp or the capitalized version).
void getLine (ifstream *file, string &sOut)
 Set the image to which a feature belong to.
void writeHomographyToFile (string outputPath, const vector< ImgInfo > &vImgInfo)
 Write the computed homographies for each image to a file.
void removeImageTrace (AllFeatureGlobal &allFeatureGlobal, vector< ImgInfo > &vImgInfo, int imgInd, Match &match)
 Remove any trace of an image.

Function Documentation

bool isImagePath ( const string &  imagePath  ) 

Returns yes if the string is the path of an image (only based on the extension) (basically true if jpg, jpeg, tif, tiff, png, bmp or the capitalized version).

Parameters:
imagePath path to check
Returns:
true if the path is the one of an image

Referenced by ImageFolder::ImageFolder(), and ImageFolder::scan().

Here is the caller graph for this function:

void getLine ( ifstream *  file,
string &  sOut 
)

Set the image to which a feature belong to.

Parameters:
file file read from
sOut string where the line will be stored

Referenced by ImageFolder::ImageFolder().

Here is the caller graph for this function:

void writeHomographyToFile ( string  outputPath,
const vector< ImgInfo > &  vImgInfo 
)

Write the computed homographies for each image to a file.

Parse the setting file.

Parameters:
outputPath path of the output folder
vImgInfo vector containing info about the current images

References Distortion::kap1.

void removeImageTrace ( AllFeatureGlobal allFeatureGlobal,
vector< ImgInfo > &  vImgInfo,
int  imgInd,
Match match 
)

Remove any trace of an image.

Parameters:
allFeatureGlobal al the FeatureGlobal
vImgInfo vector containing info about the current images
imgInd id of the image to remove
match contains all the information concerning matches

References Match::removeImg().

Referenced by ImageFolder::scan().

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