KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | List of all members
kjb::Line_correspondence Class Reference

#include <edge_lines_likelihood.h>

Classes

class  Line_bin
 

Public Member Functions

 Line_correspondence (const Edge_segment_set &image_edge_segments, double angle_sigma, double dist_sigma, double max_distance, double max_angle)
 Creates a new correspondence between collinear edge segments and model edge lines. More...
 
 ~Line_correspondence ()
 
const std::vector< std::vector
< Line_bin * > > & 
get_model_corresponding_image_edges () const
 Return a map of model_to_image_correspondence Indexed by image edge segments and sorted by the gauss_distance. More...
 
double get_max_distance () const
 
std::vector< const Edge_segment * > get_noisy_edge_segments ()
 
void find_model_corresponding_image_edges (const std::vector< Model_edge > &model_edge_segments)
 Find the correspoinding image edges for each model edge based on m_image_edge_correspondence, the correspondence will be stored in m_model_edge_correspondence. More...
 

Detailed Description

Represents the correspondence between an edge segment and a model edge, it greedily mapps a model edge to an edge segment based on the distance between the middle point of the edge segment to the model edge

Constructor & Destructor Documentation

Line_correspondence::Line_correspondence ( const Edge_segment_set image_edge_segments,
double  angle_sigma,
double  dist_sigma,
double  max_distance,
double  max_angle 
)

Creates a new correspondence between collinear edge segments and model edge lines.

kjb::Line_correspondence::~Line_correspondence ( )
inline

Member Function Documentation

void Line_correspondence::find_model_corresponding_image_edges ( const std::vector< Model_edge > &  model_edge_segments)

Find the correspoinding image edges for each model edge based on m_image_edge_correspondence, the correspondence will be stored in m_model_edge_correspondence.

Find the corresponding image edges for each model edge based on the m_image_correspondence.

double kjb::Line_correspondence::get_max_distance ( ) const
inline
const std::vector<std::vector<Line_bin*> >& kjb::Line_correspondence::get_model_corresponding_image_edges ( ) const
inline

Return a map of model_to_image_correspondence Indexed by image edge segments and sorted by the gauss_distance.

std::vector<const Edge_segment*> kjb::Line_correspondence::get_noisy_edge_segments ( )
inline

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