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

#include <manhattan_world.h>

Public Member Functions

 Manhattan_corner (std::vector< Vanishing_point > *ivpts)
 
 Manhattan_corner (const Manhattan_corner &src)
 
Manhattan_corner operator= (const Manhattan_corner &src)
 
 ~Manhattan_corner ()
 
bool is_available (unsigned int i) const
 Returns true if the ith corner segment was detected in the image, false if it is missing. More...
 
const Manhattan_corner_segmentget_segment (unsigned int i) const
 
unsigned int get_index (unsigned int i) const
 Returns the index in the edge_segments vector stored in the Manahattan_world class corresponding to the ith corner_segment in this corner i=[0,2]. More...
 
const kjb::Vectorget_position () const
 Returns the position of the corner in the image plane. More...
 
void set_position (const kjb::Vector &iposition)
 Sets the position of the corner in the image plane. More...
 
void set_segment (const Manhattan_corner_segment &segment, unsigned int i)
 
void set_segment (unsigned int i, const Manhattan_segment &segment, double dist=0.0, double perp_dist=0)
 
void set_index (unsigned int i, unsigned int iindex)
 
void delete_segment (unsigned int i)
 
const Line_segmentget_orthogonal_segment (unsigned int i) const
 
unsigned int num_available_segments () const
 
void draw (kjb::Image &img, bool draw_full_segments=false, double width=1.0) const
 
void get_3D_corner (double z_distance, double focal_length, double princ_x, double princ_y, kjb::Vector &corner3D_1, kjb::Vector &corner3D_2, kjb::Vector &corner3D_3, kjb::Vector &position_3D) const
 
void get_direction (unsigned int segment_index, kjb::Vector &direction) const
 
bool is_up_corner () const
 
double get_avg_segment_size () const
 
void compute_orthogonal_segments ()
 
void init_missing_orthogonal_segment (int iindex, double start_x, double start_y, double end_x, double end_y)
 
void compute_orthogonal_segment (unsigned int i)
 

Friends

std::ostream & operator<< (std::ostream &out, const Manhattan_corner &mc)
 

Constructor & Destructor Documentation

kjb::Manhattan_corner::Manhattan_corner ( std::vector< Vanishing_point > *  ivpts)
inline
kjb::Manhattan_corner::Manhattan_corner ( const Manhattan_corner src)
inline
kjb::Manhattan_corner::~Manhattan_corner ( )
inline

Member Function Documentation

void Manhattan_corner::compute_orthogonal_segment ( unsigned int  i)
void Manhattan_corner::compute_orthogonal_segments ( )
void kjb::Manhattan_corner::delete_segment ( unsigned int  i)
inline
void Manhattan_corner::draw ( kjb::Image img,
bool  draw_full_segments = false,
double  width = 1.0 
) const
void Manhattan_corner::get_3D_corner ( double  z_distance,
double  focal_length,
double  princ_x,
double  princ_y,
kjb::Vector corner3D_1,
kjb::Vector corner3D_2,
kjb::Vector corner3D_3,
kjb::Vector position_3D 
) const
double Manhattan_corner::get_avg_segment_size ( ) const
void Manhattan_corner::get_direction ( unsigned int  segment_index,
kjb::Vector direction 
) const
unsigned int kjb::Manhattan_corner::get_index ( unsigned int  i) const
inline

Returns the index in the edge_segments vector stored in the Manahattan_world class corresponding to the ith corner_segment in this corner i=[0,2].

const Line_segment& kjb::Manhattan_corner::get_orthogonal_segment ( unsigned int  i) const
inline
const kjb::Vector& kjb::Manhattan_corner::get_position ( ) const
inline

Returns the position of the corner in the image plane.

const Manhattan_corner_segment* kjb::Manhattan_corner::get_segment ( unsigned int  i) const
inline
void Manhattan_corner::init_missing_orthogonal_segment ( int  iindex,
double  start_x,
double  start_y,
double  end_x,
double  end_y 
)
bool kjb::Manhattan_corner::is_available ( unsigned int  i) const
inline

Returns true if the ith corner segment was detected in the image, false if it is missing.

bool Manhattan_corner::is_up_corner ( ) const
unsigned int Manhattan_corner::num_available_segments ( ) const
Manhattan_corner kjb::Manhattan_corner::operator= ( const Manhattan_corner src)
inline
void kjb::Manhattan_corner::set_index ( unsigned int  i,
unsigned int  iindex 
)
inline
void kjb::Manhattan_corner::set_position ( const kjb::Vector iposition)
inline

Sets the position of the corner in the image plane.

void kjb::Manhattan_corner::set_segment ( const Manhattan_corner_segment segment,
unsigned int  i 
)
inline
void kjb::Manhattan_corner::set_segment ( unsigned int  i,
const Manhattan_segment segment,
double  dist = 0.0,
double  perp_dist = 0 
)
inline

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const Manhattan_corner mc 
)
friend

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