Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
pano::FitterResult Class Reference

#include <ModelFitter.h>

Inheritance diagram for pano::FitterResult:
Inheritance graph
[legend]

List of all members.

Public Types

enum  StdMats { R = 0, W_HAT = 1, T = 2, N_MATS }

Public Member Functions

virtual void deserialize (const cv::FileNode &fn)
bool empty () const
double err () const
double err_thresh () const
 FitterResult ()
 FitterResult (const std::vector< cv::Mat > &mats, bool success, double err, double err_thresh, const std::vector< uchar > &inlier_mask, size_t inliers)
const char * getMatName (int which) const
const std::vector< uchar > & inlier_mask () const
size_t inliers () const
const cv::Mat & mat (size_t which) const
virtual void serialize (cv::FileStorage &fs) const
void setNonStdMatName (int idx, const std::string &name)
bool success () const
virtual int version () const
virtual ~FitterResult ()

Static Public Member Functions

static std::vector< cv::Mat > GenerateStdMats ()
static const char * GetStdMatName (int which)

Private Attributes

bool empty_
 number of 'inliers'
double err_
double err_thresh_
std::vector< uchar > inlier_mask_
size_t inliers_
std::vector< cv::Mat > mats_
std::vector< std::string > names_
bool success_

Detailed Description

The result of a fit - this is universal to to fitting two images to some extrinsic model (eg. rotation)

Definition at line 38 of file ModelFitter.h.


Member Enumeration Documentation

Enumerator:
R 

Rotation matrix.

W_HAT 

3 degrees of freedom representation of R Matrix

T 

Translation matrix.

N_MATS 

number of mats (always keep this at the end of the StdMats enum

Definition at line 93 of file ModelFitter.h.


Constructor & Destructor Documentation

Definition at line 45 of file ModelFitter.cpp.

pano::FitterResult::FitterResult ( const std::vector< cv::Mat > &  mats,
bool  success,
double  err,
double  err_thresh,
const std::vector< uchar > &  inlier_mask,
size_t  inliers 
)

Definition at line 49 of file ModelFitter.cpp.

virtual pano::FitterResult::~FitterResult ( ) [inline, virtual]

Definition at line 45 of file ModelFitter.h.


Member Function Documentation

void pano::FitterResult::deserialize ( const cv::FileNode &  fn) [virtual]

Implements pano::serializable.

Definition at line 96 of file ModelFitter.cpp.

bool pano::FitterResult::empty ( ) const [inline]

Definition at line 54 of file ModelFitter.h.

double pano::FitterResult::err ( ) const [inline]

Definition at line 66 of file ModelFitter.h.

double pano::FitterResult::err_thresh ( ) const [inline]

Definition at line 70 of file ModelFitter.h.

std::vector< cv::Mat > pano::FitterResult::GenerateStdMats ( ) [static]

Definition at line 36 of file ModelFitter.cpp.

const char * pano::FitterResult::getMatName ( int  which) const

Definition at line 56 of file ModelFitter.cpp.

const char * pano::FitterResult::GetStdMatName ( int  which) [static]

Definition at line 21 of file ModelFitter.cpp.

const std::vector<uchar>& pano::FitterResult::inlier_mask ( ) const [inline]

Definition at line 74 of file ModelFitter.h.

size_t pano::FitterResult::inliers ( ) const [inline]

Definition at line 78 of file ModelFitter.h.

const cv::Mat& pano::FitterResult::mat ( size_t  which) const [inline]

Definition at line 59 of file ModelFitter.h.

void pano::FitterResult::serialize ( cv::FileStorage &  fs) const [virtual]

Implements pano::serializable.

Definition at line 67 of file ModelFitter.cpp.

void pano::FitterResult::setNonStdMatName ( int  idx,
const std::string &  name 
)

Definition at line 63 of file ModelFitter.cpp.

bool pano::FitterResult::success ( ) const [inline]

Definition at line 49 of file ModelFitter.h.

virtual int pano::FitterResult::version ( ) const [inline, virtual]

Implements pano::serializable.

Definition at line 83 of file ModelFitter.h.


Member Data Documentation

number of 'inliers'

Definition at line 112 of file ModelFitter.h.

double pano::FitterResult::err_ [private]

Definition at line 108 of file ModelFitter.h.

Definition at line 109 of file ModelFitter.h.

std::vector<uchar> pano::FitterResult::inlier_mask_ [private]

Definition at line 110 of file ModelFitter.h.

size_t pano::FitterResult::inliers_ [private]

Definition at line 111 of file ModelFitter.h.

std::vector<cv::Mat> pano::FitterResult::mats_ [private]

Definition at line 106 of file ModelFitter.h.

std::vector<std::string> pano::FitterResult::names_ [private]

Definition at line 114 of file ModelFitter.h.

Definition at line 107 of file ModelFitter.h.


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


pano_core
Author(s): Ethan Rublee
autogenerated on Wed Aug 26 2015 16:34:01