Compute a direction at each point, usually normal to curve. More...
#include <msm_pose_maker.h>
Public Member Functions | |
~msm_pose_maker () | |
void | set_from_curves (unsigned n_points, const msm_curves &curves) |
Set up definitions of directions from the curves. | |
bool | defined (unsigned i) |
Returns true if direction defined at point i. | |
void | create_vectors (const msm_points &points, vcl_vector< vgl_vector_2d< double > > &dir) const |
Compute a direction at each point, usually normal to curve. | |
void | print_summary (vcl_ostream &os) const |
Print class to os. | |
void | b_write (vsl_b_ostream &bfs) const |
Save class to binary file stream. | |
void | b_read (vsl_b_istream &bfs) |
Load class from binary file stream. | |
Private Attributes | |
vcl_vector< unsigned > | end0_ |
Define tangent at point i as line between end0_[i] and end1_[i]. | |
vcl_vector< unsigned > | end1_ |
Define tangent at point i as line between end0_[i] and end1_[i]. |
Compute a direction at each point, usually normal to curve.
Generates a unit direction vector for each point. Typically these are defined as normals to the curve passing through the point.
Define tangent at point i as line between end0_[i] and end1_[i]. If end0_[i]==end1_[i] then use vector (1,0) in ref. frame.
Definition at line 20 of file msm_pose_maker.h.
msm_pose_maker::~msm_pose_maker | ( | ) | [inline] |
Definition at line 30 of file msm_pose_maker.h.
void msm_pose_maker::b_read | ( | vsl_b_istream & | bfs | ) |
Load class from binary file stream.
Definition at line 98 of file msm_pose_maker.cxx.
void msm_pose_maker::b_write | ( | vsl_b_ostream & | bfs | ) | const |
Save class to binary file stream.
Definition at line 89 of file msm_pose_maker.cxx.
void msm_pose_maker::create_vectors | ( | const msm_points & | points, |
vcl_vector< vgl_vector_2d< double > > & | dir | ||
) | const |
Compute a direction at each point, usually normal to curve.
Definition at line 43 of file msm_pose_maker.cxx.
bool msm_pose_maker::defined | ( | unsigned | i | ) | [inline] |
Returns true if direction defined at point i.
Definition at line 38 of file msm_pose_maker.h.
void msm_pose_maker::print_summary | ( | vcl_ostream & | os | ) | const |
Print class to os.
Definition at line 81 of file msm_pose_maker.cxx.
void msm_pose_maker::set_from_curves | ( | unsigned | n_points, |
const msm_curves & | curves | ||
) |
Set up definitions of directions from the curves.
Where multiple curves pass through a point, the direction is defined by the first in the list.
Definition at line 13 of file msm_pose_maker.cxx.
vcl_vector<unsigned> msm_pose_maker::end0_ [private] |
Define tangent at point i as line between end0_[i] and end1_[i].
Definition at line 24 of file msm_pose_maker.h.
vcl_vector<unsigned> msm_pose_maker::end1_ [private] |
Define tangent at point i as line between end0_[i] and end1_[i].
Definition at line 27 of file msm_pose_maker.h.