#include <bmrf_curve_3d_builder.h>
Definition at line 30 of file bmrf_curve_3d_builder.h.
Public Types | |
| typedef vcl_pair< bmrf_arc_sptr, bmrf_curvel_3d_sptr > | time_match |
| typedef vcl_vector< time_match > | match_vector |
Public Member Functions | |
| bmrf_curve_3d_builder () | |
| Constructor. | |
| bmrf_curve_3d_builder (const bmrf_network_sptr &) | |
| Constructor. | |
| ~bmrf_curve_3d_builder () | |
| Destructor. | |
| void | set_network (const bmrf_network_sptr &network) |
| Set the network. | |
| void | init_cameras (const vnl_double_3x4 &C0, double scale=1.0) |
| Initialize the camera matrices (using a specified camera). | |
| bool | build (int min_prj=3, int min_len=10, double trim_thresh=0.001) |
| Build The curves. | |
| void | reconstruct (float sigma=0.5) |
| Reconstruct the 3D curves from the curvel chains. | |
| bool | compute_bounding_box (const float *inlier_fractions=NULL, bool align_ep=false) |
| Compute the bounding box aligned with vehicle direction. | |
| vcl_set< bmrf_curve_3d_sptr > | curves () const |
| Return the constructed curves. | |
| vcl_map< int, vnl_double_3x4 > | cameras () const |
| Return the cameras used in the reconstruction. | |
| vgl_vector_3d< double > | direction () const |
| Return the 3D direction of motion of the curves. | |
| vnl_double_4x4 | bb_xform () const |
| Return the bounding box transformation. | |
Protected Member Functions | |
| void | compute_camera_offsets () |
| Compute the relative change in spacing between cameras. | |
| void | find_alpha_bounds () |
| Determine the alpha bounds from the network. | |
| vcl_set< bmrf_curvel_3d_sptr > | build_curvels (vcl_set< bmrf_curvel_3d_sptr > &all_curvels, double alpha) const |
| Build curvels by linking across time through probable arcs. | |
| vcl_set< bmrf_curvel_3d_sptr > | extend_curves (vcl_set< bmrf_curve_3d_sptr > &growing_curves, double alpha) |
| extend all curves to the next alpha. | |
| vcl_vector< bmrf_arc_sptr > | find_arcs_at (double alpha) const |
Find all arcs where both nodes are valid at alpha. | |
| void | reconstruct_point (bmrf_curvel_3d_sptr curvel) const |
| Reconstruct the 3d location of a curvel from its projections. | |
| void | append_curvels (vcl_set< bmrf_curvel_3d_sptr > &curvels, vcl_set< bmrf_curve_3d_sptr > &growing_curves, int min_prj) |
Match the curvels to the ends of the growing_curves. | |
| double | append_correct (const bmrf_curvel_3d_sptr &new_c, const bmrf_curvel_3d_sptr &prev_c) const |
Return a measure (0.0 to 1.0) of how well new_c matches prev_c. | |
Protected Attributes | |
| bmrf_network_sptr | network_ |
| The network. | |
| double | min_alpha_ |
| Bounds on the alpha values in the network;. | |
| double | max_alpha_ |
| vcl_set< bmrf_curve_3d_sptr > | curves_ |
| vcl_map< int, vnl_double_3x4 > | C_ |
| Map from frame numbers to cameras. | |
| vcl_map< int, double > | offsets_ |
| Map from frame numbers to camera offsets. | |
| vgl_vector_3d< double > | direction_ |
| 3D direction unit vector. | |
| vnl_double_4x4 | bb_xform_ |
| This transform maps the unit cube into the vehicle aligned bounding box. | |
|
|
Definition at line 34 of file bmrf_curve_3d_builder.h. |
|
|
Definition at line 33 of file bmrf_curve_3d_builder.h. |
|
|
Constructor.
Definition at line 29 of file bmrf_curve_3d_builder.cxx. |
|
|
Constructor.
Definition at line 36 of file bmrf_curve_3d_builder.cxx. |
|
|
Destructor.
Definition at line 40 of file bmrf_curve_3d_builder.h. |
|
||||||||||||
|
Return a measure (0.0 to 1.0) of how well
Definition at line 659 of file bmrf_curve_3d_builder.cxx. |
|
||||||||||||||||
|
Match the
Definition at line 592 of file bmrf_curve_3d_builder.cxx. |
|
|
Return the bounding box transformation.
Definition at line 178 of file bmrf_curve_3d_builder.cxx. |
|
||||||||||||||||
|
Build The curves.
Curves with less than Definition at line 312 of file bmrf_curve_3d_builder.cxx. |
|
||||||||||||
|
Build curvels by linking across time through probable arcs.
Definition at line 404 of file bmrf_curve_3d_builder.cxx. |
|
|
Return the cameras used in the reconstruction.
Definition at line 162 of file bmrf_curve_3d_builder.cxx. |
|
||||||||||||
|
Compute the bounding box aligned with vehicle direction.
Definition at line 201 of file bmrf_curve_3d_builder.cxx. |
|
|
Compute the relative change in spacing between cameras.
Definition at line 95 of file bmrf_curve_3d_builder.cxx. |
|
|
Return the constructed curves.
Definition at line 154 of file bmrf_curve_3d_builder.cxx. |
|
|
Return the 3D direction of motion of the curves.
Definition at line 170 of file bmrf_curve_3d_builder.cxx. |
|
||||||||||||
|
extend all curves to the next alpha.
Definition at line 493 of file bmrf_curve_3d_builder.cxx. |
|
|
Determine the alpha bounds from the network.
Definition at line 380 of file bmrf_curve_3d_builder.cxx. |
|
|
Find all arcs where both nodes are valid at
Definition at line 534 of file bmrf_curve_3d_builder.cxx. |
|
||||||||||||
|
Initialize the camera matrices (using a specified camera).
Definition at line 57 of file bmrf_curve_3d_builder.cxx. |
|
|
Reconstruct the 3D curves from the curvel chains.
Definition at line 368 of file bmrf_curve_3d_builder.cxx. |
|
|
Reconstruct the 3d location of a curvel from its projections.
Definition at line 561 of file bmrf_curve_3d_builder.cxx. |
|
|
Set the network.
Definition at line 146 of file bmrf_curve_3d_builder.cxx. |
|
|
This transform maps the unit cube into the vehicle aligned bounding box.
Definition at line 122 of file bmrf_curve_3d_builder.h. |
|
|
Map from frame numbers to cameras.
Definition at line 113 of file bmrf_curve_3d_builder.h. |
|
|
Definition at line 110 of file bmrf_curve_3d_builder.h. |
|
|
3D direction unit vector.
Definition at line 119 of file bmrf_curve_3d_builder.h. |
|
|
Definition at line 108 of file bmrf_curve_3d_builder.h. |
|
|
Bounds on the alpha values in the network;.
Definition at line 107 of file bmrf_curve_3d_builder.h. |
|
|
The network.
Definition at line 104 of file bmrf_curve_3d_builder.h. |
|
|
Map from frame numbers to camera offsets.
Definition at line 116 of file bmrf_curve_3d_builder.h. |
1.4.4