Classes | |
| struct | chamfer |
| class | dmap |
Functions | |
| template<int d10, int d11> const chamfer< int > & | mk_chamfer_3x3 (float coef=1.f) |
| const chamfer< float > & | mk_chamfer_3x3 (float d10, float d11) |
| template<int d10, int d11, int d21> const chamfer< int > & | mk_chamfer_5x5 (float coef=1.f) |
| const chamfer< float > & | mk_chamfer_5x5 (float d10, float d11, float d21) |
| const chamfer< int > & | chamfer_1_1 () |
| const chamfer< int > & | chamfer_1_2 () |
| const chamfer< int > & | chamfer_2_3 () |
| const chamfer< int > & | chamfer_5_7 () |
| const chamfer< int > & | chamfer_12_17 () |
| const chamfer< int > & | chessboard () |
| const chamfer< int > & | cityblock () |
| const chamfer< int > & | chamfer_4_6_9 () |
| const chamfer< int > & | chamfer_5_7_11 () |
| const chamfer< int > & | chamfer_9_13_20 () |
| const chamfer< int > & | chamfer_16_23_36 () |
| const chamfer< float > & | best_set_3x3 () |
| const chamfer< float > & | best_set_5x5 () |
| const chamfer< int > & | mchamfer_1_1 () |
| const chamfer< int > & | mchamfer_1_2 () |
| const chamfer< int > & | mchamfer_2_3 () |
| const chamfer< int > & | mchamfer_5_7 () |
| const chamfer< int > & | mchamfer_12_17 () |
| const chamfer< int > & | mchessboard () |
| const chamfer< int > & | mcityblock () |
| const chamfer< int > & | mchamfer_4_6_9 () |
| const chamfer< int > & | mchamfer_5_7_11 () |
| const chamfer< int > & | mchamfer_9_13_20 () |
| const chamfer< int > & | mchamfer_17_24_38 () |
| const chamfer< float > & | mbest_set_3x3 () |
| const chamfer< float > & | mbest_set_5x5 () |
| template<class I> image2d< float > | exact_dmap (const abstract::image< I > &input) |
| Distance map using the Euclidean distance. | |
| float | euclidian_dist2 (const point2d &p1, const point2d &p2) |
|
|
Best set 3x3
Definition at line 170 of file dmap.hxx. References mk_chamfer_3x3().
00171 { return mk_chamfer_3x3(0.9481, 1.3408); }
|
|
|
Best set 5x5
Definition at line 172 of file dmap.hxx. References mk_chamfer_5x5().
00173 { return mk_chamfer_5x5(0.9801, 1.4060, 2.2044); }
|
|
|
Chamfer_12_17
Definition at line 151 of file dmap.hxx.
00155 {
|
|
|
Chamfer_16_23_36
Definition at line 168 of file dmap.hxx.
00171 { return mk_chamfer_3x3(0.9481, 1.3408); }
|
|
|
Chamfer_1_1
Definition at line 147 of file dmap.hxx. Referenced by chessboard().
00155 {
|
|
|
Chamfer_1_2
Definition at line 148 of file dmap.hxx. Referenced by cityblock().
00155 {
|
|
|
Chamfer_2_3
Definition at line 149 of file dmap.hxx.
00155 {
|
|
|
Chamfer_4_6_9
Definition at line 165 of file dmap.hxx.
00171 { return mk_chamfer_3x3(0.9481, 1.3408); }
|
|
|
Chamfer_5_7
Definition at line 150 of file dmap.hxx.
00155 {
|
|
|
Chamfer_5_7_11
Definition at line 166 of file dmap.hxx.
00171 { return mk_chamfer_3x3(0.9481, 1.3408); }
|
|
|
Chamfer_9_13_20
Definition at line 167 of file dmap.hxx.
00171 { return mk_chamfer_3x3(0.9481, 1.3408); }
|
|
|
Chessboard
Definition at line 154 of file dmap.hxx. References chamfer_1_1().
00155 {
00156 return chamfer_1_1();
00157 }
|
|
|
Cityblock
Definition at line 160 of file dmap.hxx. References chamfer_1_2().
00161 {
00162 return chamfer_1_2();
00163 }
|
|
||||||||||||
|
Produce a chamfer mask 3x3
Definition at line 79 of file dmap.hxx.
00080 : add (?) , float coef = 1.f 00081 { 00082 static const w_window2d<float> w_win_fwd = ( mlc::floats_2d = 00083 d11, d10, d11, mlc::lbrk, 00084 d10, mlc::x(), 0.f, end ); 00085 static const w_window2d<float> w_win_bkd = ( mlc::floats_2d = 00086 0.f, mlc::x(), d10, mlc::lbrk, 00087 d11, d10, d11, end ); 00088 static const chamfer<float> ch_ = 00089 chamfer<float>(w_win_fwd, w_win_bkd, 1.f); 00090 return ch_; 00091 } |
|
||||||||||
|
Produce a chamfer mask 3x3
Definition at line 65 of file dmap.hxx. Referenced by best_set_3x3().
00066 {
00067 static const w_window2d<int> w_win_fwd = ( mlc::ints_2d =
00068 d11, d10, d11, mlc::lbrk,
00069 d10, mlc::x(), 0, end );
00070 static const w_window2d<int> w_win_bkd = ( mlc::ints_2d =
00071 0, mlc::x(), d10, mlc::lbrk,
00072 d11, d10, d11, end );
00073 static const chamfer<int> ch_ = chamfer<int>(w_win_fwd, w_win_bkd, coef);
00074 return ch_;
00075 }
|
|
||||||||||||||||
|
Chamfer 5x5 using float
Definition at line 111 of file dmap.hxx.
00112 {
00113 const float O = 0.f;
00114 static const w_window2d<float> w_win_fwd = ( mlc::floats_2d =
00115 O, d21, O, d21, O, mlc::lbrk,
00116 d21, d11, d10, d11, d21,
00117 O, d10, mlc::x(), O, O, end );
00118 static const w_window2d<float> w_win_bkd = ( mlc::floats_2d =
00119 O, O, mlc::x(), d10, O, mlc::lbrk,
00120 d21, d11, d10, d11, d21,
00121 O, d21, O, d21, O, end );
00122 static const chamfer<float> ch_ =
00123 chamfer<float>(w_win_fwd, w_win_bkd, 1.f);
00124 return ch_;
00125 }
|
|
||||||||||
|
Chamfer 5x5
Definition at line 95 of file dmap.hxx. Referenced by best_set_5x5().
00096 {
00097 static const w_window2d<int> w_win_fwd = ( mlc::ints_2d =
00098 0, d21, 0, d21, 0, mlc::lbrk,
00099 d21, d11, d10, d11, d21,
00100 0, d10, mlc::x(), 0, 0, end );
00101 static const w_window2d<int> w_win_bkd = ( mlc::ints_2d =
00102 0, 0, mlc::x(), d10, 0, mlc::lbrk,
00103 d21, d11, d10, d11, d21,
00104 0, d21, 0, d21, 0, end );
00105 static const chamfer<int> ch_ = chamfer<int>(w_win_fwd, w_win_bkd, coef);
00106 return ch_;
00107 }
|
1.3.6-20040222