/dports/misc/vxl/vxl-3.3.2/contrib/rpl/rrel/tests/ |
H A D | similarity_from_matches.cxx | 196 from_loc[0] = 10; from_loc[1] = 20; in generate_similarity_matches() 209 from_loc[0] = 80; from_loc[1] = -20; in generate_similarity_matches() 216 from_loc[0] = -50; from_loc[1] = 84; in generate_similarity_matches() 229 from_loc[0] = 75; from_loc[1] = 62; in generate_similarity_matches() 249 from_loc[0] = 32; from_loc[1] = 7; in generate_similarity_matches() 269 from_loc[0] = -99; from_loc[1] = 99; in generate_similarity_matches() 282 from_loc[0] = 65; from_loc[1] = 99; in generate_similarity_matches() 289 from_loc[0] = 15; from_loc[1] = -42; in generate_similarity_matches() 302 from_loc[0] = 51; from_loc[1] = -24; in generate_similarity_matches() 309 from_loc[0] = 44; from_loc[1] = 66; in generate_similarity_matches() [all …]
|
H A D | test_similarity_from_matches.cxx | 37 vnl_vector_fixed<double,2> from_loc; in test_similarity_from_matches() local 41 from_loc[0] = 10; from_loc[1] = 20; in test_similarity_from_matches() 42 to_loc = A*from_loc + t; in test_similarity_from_matches() 44 matches.emplace_back( from_loc, to_loc, id ); // 0 - id 0 - good in test_similarity_from_matches() 48 matches.emplace_back( from_loc, to_loc, id ); // 1 - id 0 - bad in test_similarity_from_matches() 50 from_loc[0] = -15; from_loc[1] = 6; in test_similarity_from_matches() 51 to_loc = A*from_loc + t; in test_similarity_from_matches() 54 matches.emplace_back( from_loc, to_loc, id ); // 2 - id 1 - bad in test_similarity_from_matches() 56 to_loc = A*from_loc + t; in test_similarity_from_matches() 65 from_loc[0] += 5; from_loc[1] += -3; in test_similarity_from_matches() [all …]
|
/dports/misc/vxl/vxl-3.3.2/contrib/rpl/rgrl/ |
H A D | rgrl_trans_rad_dis_homo2d.cxx | 46 const double mapped_w = H(2,0)*from_loc[0] + H(2,1)*from_loc[1] + H(2,2); in homo_wrt_loc() 49 jac_loc(0,0) = H(0,0)*( H(2,1)*from_loc[1]+H(2,2) ) - H(2,0)*( H(0,1)*from_loc[1] + H(0,2) ); in homo_wrt_loc() 50 jac_loc(1,0) = H(1,0)*( H(2,1)*from_loc[1]+H(2,2) ) - H(2,0)*( H(1,1)*from_loc[1] + H(1,2) ); in homo_wrt_loc() 52 jac_loc(0,1) = H(0,1)*( H(2,0)*from_loc[0]+H(2,2) ) - H(2,1)*( H(0,0)*from_loc[0] + H(0,2) ); in homo_wrt_loc() 53 jac_loc(1,1) = H(1,1)*( H(2,0)*from_loc[0]+H(2,2) ) - H(2,1)*( H(1,0)*from_loc[0] + H(1,2) ); in homo_wrt_loc() 63 vnl_vector_fixed<double, 2> const& from_loc ) in homo_wrt_h() argument 69 vnl_double_3 from_homo( from_loc[0], from_loc[1], 1 ); in homo_wrt_h() 304 map_dir( vnl_vector<double> const& from_loc, in map_dir() argument 308 assert ( from_loc.size() == 2 ); in map_dir() 311 this->map_loc(from_loc, to_loc_begin); in map_dir() [all …]
|
H A D | rgrl_trans_couple.cxx | 39 map_dir( vnl_vector<double> const& from_loc, in map_dir() argument 44 forward_xform_ -> map_direction( from_loc, from_dir, to_dir ); in map_dir() 49 map_tangent( vnl_vector<double> const& from_loc, in map_tangent() argument 54 forward_xform_ -> map_tangent( from_loc, from_dir, to_dir ); in map_tangent() 59 map_normal( vnl_vector<double> const & from_loc, in map_normal() argument 64 forward_xform_ -> map_normal( from_loc, from_dir, to_dir ); in map_normal() 69 map_normal( vnl_vector<double> const & from_loc, in map_normal() argument 75 forward_xform_ -> map_normal( from_loc, from_dir, tangent_subspace, to_dir ); in map_normal() 88 jacobian_wrt_loc( vnl_matrix<double>& jac, vnl_vector<double> const& from_loc ) const in jacobian_wrt_loc() 91 forward_xform_ -> jacobian_wrt_loc( jac, from_loc ); in jacobian_wrt_loc()
|
H A D | rgrl_transformation.h | 64 virtual void map_tangent( vnl_vector<double> const& from_loc, 72 virtual void map_normal( vnl_vector<double> const & from_loc, 80 virtual void map_normal( vnl_vector<double> const & from_loc, 90 void map_direction( vnl_vector<double> const& from_loc, 100 vnl_vector<double> map_direction( vnl_vector<double> const& from_loc, 151 vnl_matrix<double> jacobian( vnl_vector<double> const& from_loc ) const; 154 …virtual void jacobian_wrt_loc( vnl_matrix<double>& jac, vnl_vector<double> const& from_loc ) const… 193 void map_dir( vnl_vector<double> const& from_loc,
|
H A D | rgrl_transformation.cxx | 53 map_direction( vnl_vector<double> const& from_loc, in map_direction() argument 57 map_dir( from_loc, from_dir, to_dir ); in map_direction() 62 map_tangent( vnl_vector<double> const& from_loc, in map_tangent() argument 67 this->jacobian_wrt_loc( J, from_loc ); in map_tangent() 68 assert ( from_loc.size() == J.cols() ); in map_tangent() 77 map_normal( vnl_vector<double> const & from_loc, in map_normal() argument 95 unsigned int m = from_loc.size(); in map_normal() 105 map_tangent(from_loc, from_tangent, xformed_tangent); in map_normal() 172 map_normal( vnl_vector<double> const & from_loc, in map_normal() argument 334 jacobian( vnl_vector<double> const& from_loc ) const in jacobian() [all …]
|
H A D | rgrl_trans_homography2d.cxx | 105 transfer_error_covar( vnl_vector<double> const& from_loc ) const in transfer_error_covar() 108 assert ( from_loc.size() ==2 ); in transfer_error_covar() 113 vnl_double_3 from_homo( from_loc[0]-from_centre_[0], in transfer_error_covar() 114 from_loc[1]-from_centre_[1], in transfer_error_covar() 203 homo_jacobian( vnl_vector_fixed<double,2> const& from_loc ) const in homo_jacobian() 213 vnl_vector_fixed<double,3> p(from_loc[0]-from_centre_[0], from_loc[1]-from_centre_[1], 1.0); in homo_jacobian() 237 vnl_double_2 centered_from = from_loc; in jacobian_wrt_loc() 315 map_dir( vnl_vector<double> const& from_loc, in map_dir() argument 319 assert ( from_loc.size() == 2 ); in map_dir() 322 this->map_loc(from_loc, to_loc_begin); in map_dir() [all …]
|
H A D | rgrl_trans_quadratic.cxx | 122 map_dir( vnl_vector<double> const& from_loc, in map_dir() argument 126 assert ( from_loc.size() == A_.cols() ); in map_dir() 129 this->map_loc(from_loc, to_loc_begin); in map_dir() 130 this->map_loc(from_loc+from_dir, to_loc_end); in map_dir() 255 jacobian_wrt_loc( vnl_matrix<double>& jacobian_Q, vnl_vector<double> const& from_loc ) const in jacobian_wrt_loc() 261 jacobian_Q(i,0) = 2*Q_(i,0)*from_loc[0] + Q_(i,2)*from_loc[1]; in jacobian_wrt_loc() 262 jacobian_Q(i,1) = 2*Q_(i,1)*from_loc[1] + Q_(i,2)*from_loc[0]; in jacobian_wrt_loc() 267 jacobian_Q(i,0) = 2*Q_(i,0)*from_loc[0] + Q_(i,3)*from_loc[1] + Q_(i,5)*from_loc[2]; in jacobian_wrt_loc() 268 jacobian_Q(i,1) = 2*Q_(i,1)*from_loc[1] + Q_(i,3)*from_loc[0] + Q_(i,4)*from_loc[2]; in jacobian_wrt_loc() 269 jacobian_Q(i,2) = 2*Q_(i,2)*from_loc[2] + Q_(i,4)*from_loc[1] + Q_(i,5)*from_loc[0]; in jacobian_wrt_loc()
|
H A D | rgrl_trans_couple.h | 36 void map_tangent( vnl_vector<double> const& from_loc, 44 void map_normal( vnl_vector<double> const & from_loc, 52 void map_normal( vnl_vector<double> const & from_loc, 86 …void jacobian_wrt_loc( vnl_matrix<double>& jac, vnl_vector<double> const& from_loc ) const overrid… 116 void map_dir( vnl_vector<double> const& from_loc,
|
H A D | rgrl_est_dis_homo2d_lm.cxx | 72 vnl_vector_fixed<double, 2> const& from_loc ) in homo_wrt_loc() argument 78 const double mapped_w = H(2,0)*from_loc[0] + H(2,1)*from_loc[1] + H(2,2); in homo_wrt_loc() 81 jac_loc(0,0) = H(0,0)*( H(2,1)*from_loc[1]+H(2,2) ) - H(2,0)*( H(0,1)*from_loc[1] + H(0,2) ); in homo_wrt_loc() 82 jac_loc(1,0) = H(1,0)*( H(2,1)*from_loc[1]+H(2,2) ) - H(2,0)*( H(1,1)*from_loc[1] + H(1,2) ); in homo_wrt_loc() 84 jac_loc(0,1) = H(0,1)*( H(2,0)*from_loc[0]+H(2,2) ) - H(2,1)*( H(0,0)*from_loc[0] + H(0,2) ); in homo_wrt_loc() 85 jac_loc(1,1) = H(1,1)*( H(2,0)*from_loc[0]+H(2,2) ) - H(2,1)*( H(1,0)*from_loc[0] + H(1,2) ); in homo_wrt_loc() 95 vnl_vector_fixed<double, 2> const& from_loc ) in homo_wrt_h() argument 101 vnl_double_3 from_homo( from_loc[0], from_loc[1], 1 ); in homo_wrt_h()
|
H A D | rgrl_trans_mixed_spline.cxx | 25 map_dir( vnl_vector< double > const& from_loc, in map_dir() argument 32 map_loc( from_loc, delta ); in map_dir() 35 vnl_vector<double> from2 = from_loc + from_dir / from_dir.two_norm() ; in map_dir() 39 to_dir = from2 + delta2 - from_loc - delta ; in map_dir()
|
H A D | rgrl_trans_reduced_quad.cxx | 114 map_dir( vnl_vector<double> const& from_loc, in map_dir() argument 118 assert ( from_loc.size() == A_.cols() ); in map_dir() 121 this->map_loc(from_loc, to_loc_begin); in map_dir() 122 this->map_loc(from_loc+from_dir, to_loc_end); in map_dir() 237 jacobian_wrt_loc( vnl_matrix<double>& jacobian_Q, vnl_vector<double> const& from_loc ) const in jacobian_wrt_loc() 241 jacobian_Q(i,0) = 2*Q_(i,0)*from_loc[0] + Q_(i,2)*from_loc[1]; in jacobian_wrt_loc() 242 jacobian_Q(i,1) = 2*Q_(i,1)*from_loc[1] + Q_(i,2)*from_loc[0]; in jacobian_wrt_loc()
|
H A D | rgrl_trans_homo2d_proj_rad.cxx | 110 map_dir( vnl_vector<double> const& from_loc, in map_dir() argument 114 assert ( from_loc.size() == 2 ); in map_dir() 117 const vnl_double_2 from_begin( from_loc ); in map_dir() 118 vnl_double_2 from_end( from_loc ); in map_dir() 193 jacobian_wrt_loc( vnl_matrix<double>& jacobian, vnl_vector<double> const& from_loc ) const in jacobian_wrt_loc() 196 proj_jac_wrt_loc( jac_loc, H_, rad_k_, from_loc ); in jacobian_wrt_loc()
|
H A D | rgrl_trans_spline.cxx | 75 map_dir( vnl_vector<double> const& from_loc, in map_dir() argument 83 spline_jacobian.set_row( i, splines_[ i ]->jacobian( from_loc ) ); in map_dir() 92 to_dir = (spline_jacobian + xform_->jacobian( from_loc ) ) * from_dir; in map_dir() 100 jacobian_wrt_loc( vnl_matrix<double>& spline_jacobian, vnl_vector<double> const& from_loc ) const in jacobian_wrt_loc() 110 spline_jacobian.set_row( i, splines_[ i ]->jacobian( from_loc ) ); in jacobian_wrt_loc() 114 xform_->jacobian_wrt_loc( xform_jac, from_loc ); in jacobian_wrt_loc()
|
H A D | rgrl_trans_homography2d.h | 65 …void jacobian_wrt_loc( vnl_matrix<double>& jac, vnl_vector<double> const& from_loc ) const overrid… 68 vnl_matrix_fixed<double,2,3> homo_jacobian( vnl_vector_fixed<double,2> const& from_loc ) const; 100 void map_dir( vnl_vector<double> const& from_loc,
|
H A D | rgrl_trans_mixed_spline.h | 33 …void jacobian_wrt_loc( vnl_matrix<double>& jac, vnl_vector<double> const& from_loc ) const overrid… 48 void map_dir( vnl_vector< double > const& from_loc,
|
H A D | rgrl_trans_translation.h | 71 …void jacobian_wrt_loc( vnl_matrix<double>& jac, vnl_vector<double> const& from_loc ) const overrid… 92 void map_dir( vnl_vector<double> const& from_loc,
|
H A D | rgrl_trans_rad_dis_homo2d.h | 86 …void jacobian_wrt_loc( vnl_matrix<double>& jac, vnl_vector<double> const& from_loc ) const overrid… 119 void map_dir( vnl_vector<double> const& from_loc,
|
H A D | rgrl_trans_similarity.h | 93 …void jacobian_wrt_loc( vnl_matrix<double>& jac, vnl_vector<double> const& from_loc ) const overrid… 117 void map_dir( vnl_vector<double> const& from_loc,
|
H A D | rgrl_trans_rigid.h | 96 …void jacobian_wrt_loc( vnl_matrix<double>& jac, vnl_vector<double> const& from_loc ) const overrid… 117 void map_dir( vnl_vector<double> const& from_loc,
|
H A D | rgrl_trans_quadratic.h | 95 …void jacobian_wrt_loc( vnl_matrix<double>& jac, vnl_vector<double> const& from_loc ) const overrid… 116 void map_dir( vnl_vector<double> const& from_loc,
|
/dports/java/jasmin/jasmin-2.4/src/java_cup/ |
H A D | production.java | 495 int from_loc, to_loc, merge_cnt; in merge_adjacent_actions() local 502 for (from_loc=0; from_loc<len; from_loc++) in merge_adjacent_actions() 506 || !rhs_parts[from_loc].is_action()) in merge_adjacent_actions() 512 if (to_loc != from_loc) rhs_parts[to_loc] = null; in merge_adjacent_actions() 516 if (to_loc != from_loc) in merge_adjacent_actions() 520 rhs_parts[from_loc].is_action()) in merge_adjacent_actions() 525 ((action_part)rhs_parts[from_loc]).code_string()); in merge_adjacent_actions() 531 rhs_parts[to_loc] = rhs_parts[from_loc]; in merge_adjacent_actions()
|
/dports/biology/ncbi-cxx-toolkit/ncbi_cxx--25_2_0/src/objtools/writers/ |
H A D | ucsc_writer.cpp | 103 int from_loc = -1; in WriteAnnot() local 106 from_loc = CurrInt.GetFrom(); in WriteAnnot() 124 << from_loc + 1 << separator[1] in WriteAnnot()
|
/dports/www/phpbb3/phpBB3/includes/ |
H A D | functions_transfer.php | 147 function copy_file($from_loc, $to_loc) argument 151 $from_loc = ((strpos($from_loc, $phpbb_root_path) !== 0) ? $phpbb_root_path : '') . $from_loc; 154 if (!file_exists($from_loc)) 159 $result = $this->overwrite_file($from_loc, $to_loc);
|
/dports/chinese/phpbb3-tw/phpBB3/includes/ |
H A D | functions_transfer.php | 145 function copy_file($from_loc, $to_loc) argument 149 $from_loc = ((strpos($from_loc, $phpbb_root_path) !== 0) ? $phpbb_root_path : '') . $from_loc; 152 if (!file_exists($from_loc)) 157 $result = $this->overwrite_file($from_loc, $to_loc);
|