Classes | Static Public Member Functions | Static Protected Member Functions
DVision::PMVS::PatchFile Class Reference

Manages patch files. More...

#include <PatchFile.h>

List of all members.

Classes

struct  Patch
 A single patch. More...

Static Public Member Functions

static void readFile (const std::string &filename, std::vector< std::vector< int > > &visibility, bool use_weak_list=false)
static void readFile (const std::string &filename, std::vector< Patch > &patches)
static void saveFile (const std::string &filename, const std::vector< Patch > &patches)

Static Protected Member Functions

static int getNumberOfPoints (const std::string &filename)
static int parseInt (const std::string &s)
static void readVisibilityIndices (std::fstream &f, std::vector< std::vector< int > > &visibility, int pt_idx)

Detailed Description

Manages patch files.

Definition at line 36 of file PatchFile.h.


Member Function Documentation

int PatchFile::getNumberOfPoints ( const std::string &  filename) [static, protected]

Reads the header of the given filename and returns the number of points it contains

Parameters:
filename

Definition at line 221 of file PatchFile.cpp.

int PatchFile::parseInt ( const std::string &  s) [static, protected]

Returns the integer represented by the string s

Parameters:
s
Returns:
int

Definition at line 211 of file PatchFile.cpp.

void PatchFile::readFile ( const std::string &  filename,
std::vector< std::vector< int > > &  visibility,
bool  use_weak_list = false 
) [static]

Reads a patch file and returns the visibility info of each file

Parameters:
filename
visibilityvisibility[i]= list of point indices seen in the i-th img
use_weak_listif true, those points which are likely to be visible but do not have texture consistency are also considered as visible

Definition at line 137 of file PatchFile.cpp.

void PatchFile::readFile ( const std::string &  filename,
std::vector< Patch > &  patches 
) [static]

Reads the patchs of a patch file

Parameters:
filename
patches

Definition at line 36 of file PatchFile.cpp.

void PatchFile::readVisibilityIndices ( std::fstream &  f,
std::vector< std::vector< int > > &  visibility,
int  pt_idx 
) [static, protected]

Reads a list of indices from f and updates the visibility vector accordingly

Parameters:
ffstream in a line with the number of indices in the next line
visibility
pt_idxindex of the current 3d point

Definition at line 183 of file PatchFile.cpp.

void PatchFile::saveFile ( const std::string &  filename,
const std::vector< Patch > &  patches 
) [static]

Saves the patches into filename

Parameters:
filename
patches

Definition at line 95 of file PatchFile.cpp.


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


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:34:30