Ticket #34838: patch-contrib__gel__mrc__vpgl__txx-clang-compatibility.diff
File patch-contrib__gel__mrc__vpgl__txx-clang-compatibility.diff, 7.6 KB (added by neverpanic (Clemens Lang), 12 years ago) |
---|
-
contrib/gel/mrc/vpgl/vpgl_affine_camera.txx
old new 14 14 { 15 15 vnl_matrix_fixed<T,3,4> C( (T)0 ); 16 16 C(0,0) = C(1,1) = C(2,3) = (T)1; 17 set_matrix( C );17 this->set_matrix( C ); 18 18 } 19 19 20 20 … … 35 35 vnl_matrix_fixed<T,3,4> C( camera_matrix ); 36 36 C = C/C(2,3); 37 37 C(2,0) = (T)0; C(2,1) = (T)0; C(2,2) = (T)0; 38 set_matrix( C );38 this->set_matrix( C ); 39 39 } 40 40 41 41 … … 51 51 C(1,i) = row2(i); 52 52 } 53 53 C(2,3) = (T)1; 54 set_matrix( C );54 this->set_matrix( C ); 55 55 } 56 56 57 57 // Code for easy instantiation. -
contrib/gel/mrc/vpgl/vpgl_affine_fundamental_matrix.txx
old new 16 16 vnl_matrix_fixed<T,3,3> default_matrix( (T)0 ); 17 17 default_matrix(0,1) = default_matrix(0,2) = (T)1; 18 18 default_matrix(1,0) = default_matrix(2,0) = -(T)1; 19 set_matrix( default_matrix );19 this->set_matrix( default_matrix ); 20 20 } 21 21 22 22 … … 40 40 fm.put( 2, 2, c ); 41 41 fm.put( 1, 2, d ); 42 42 fm.put( 0, 2, e ); 43 set_matrix( fm );43 this->set_matrix( fm ); 44 44 }; 45 45 46 46 -
contrib/gel/mrc/vpgl/vpgl_essential_matrix.txx
old new 66 66 const vpgl_essential_matrix<T>& 67 67 vpgl_essential_matrix<T>::operator=( const vpgl_essential_matrix<T>& fm ) 68 68 { 69 set_matrix( fm.F_ );69 this->set_matrix( fm.F_ ); 70 70 return *this; 71 71 } 72 72 -
contrib/gel/mrc/vpgl/vpgl_fundamental_matrix.txx
old new 27 27 { 28 28 vnl_matrix_fixed<T,3,3> default_matrix( (T)0 ); 29 29 default_matrix(0,0) = default_matrix(1,1) = (T)1; 30 set_matrix( default_matrix );30 this->set_matrix( default_matrix ); 31 31 } 32 32 33 33 //--------------------------------- … … 37 37 const vpgl_fundamental_matrix<T>& other) 38 38 : cached_svd_(NULL) 39 39 { 40 set_matrix( other.F_ );40 this->set_matrix( other.F_ ); 41 41 } 42 42 43 43 … … 46 46 const vpgl_fundamental_matrix<T>& 47 47 vpgl_fundamental_matrix<T>::operator=( const vpgl_fundamental_matrix<T>& fm ) 48 48 { 49 set_matrix( fm.F_ );49 this->set_matrix( fm.F_ ); 50 50 return *this; 51 51 } 52 52 … … 206 206 const vpgl_proj_camera<T>& cl ) 207 207 { 208 208 vnl_cross_product_matrix e2x( cl.get_matrix() * cr.svd()->nullvector() ); 209 set_matrix( e2x * cl.get_matrix() * cr.svd()->inverse() );209 this->set_matrix( e2x * cl.get_matrix() * cr.svd()->inverse() ); 210 210 } 211 211 212 212 -
contrib/gel/mrc/vpgl/vpgl_local_rational_camera.txx
old new 126 126 << "SpecId = \"RPC00B\";\n" 127 127 << "BEGIN_GROUP = IMAGE\n" 128 128 << "\n\n" // skip errBias and errRand fields 129 << " lineOffset = " << offset(vpgl_rational_camera<T>::V_INDX) << '\n'130 << " sampOffset = " << offset(vpgl_rational_camera<T>::U_INDX) << '\n'131 << " latOffset = " << offset(vpgl_rational_camera<T>::Y_INDX) << '\n'132 << " longOffset = " << offset(vpgl_rational_camera<T>::X_INDX) << '\n'133 << " heightOffset = " << offset(vpgl_rational_camera<T>::Z_INDX) << '\n'134 << " lineScale = " << scale(vpgl_rational_camera<T>::V_INDX) << '\n'135 << " sampScale = " << scale(vpgl_rational_camera<T>::U_INDX) << '\n'136 << " latScale = " << scale(vpgl_rational_camera<T>::Y_INDX) << '\n'137 << " longScale = " << scale(vpgl_rational_camera<T>::X_INDX) << '\n'138 << " heightScale = " << scale(vpgl_rational_camera<T>::Z_INDX) << '\n';129 << " lineOffset = " << this->offset(vpgl_rational_camera<T>::V_INDX) << '\n' 130 << " sampOffset = " << this->offset(vpgl_rational_camera<T>::U_INDX) << '\n' 131 << " latOffset = " << this->offset(vpgl_rational_camera<T>::Y_INDX) << '\n' 132 << " longOffset = " << this->offset(vpgl_rational_camera<T>::X_INDX) << '\n' 133 << " heightOffset = " << this->offset(vpgl_rational_camera<T>::Z_INDX) << '\n' 134 << " lineScale = " << this->scale(vpgl_rational_camera<T>::V_INDX) << '\n' 135 << " sampScale = " << this->scale(vpgl_rational_camera<T>::U_INDX) << '\n' 136 << " latScale = " << this->scale(vpgl_rational_camera<T>::Y_INDX) << '\n' 137 << " longScale = " << this->scale(vpgl_rational_camera<T>::X_INDX) << '\n' 138 << " heightScale = " << this->scale(vpgl_rational_camera<T>::Z_INDX) << '\n'; 139 139 vnl_matrix_fixed<double,4,20> coeffs = this->coefficient_matrix(); 140 140 file_out << " lineNumCoef = ("; 141 141 for (int i=0; i<20; i++) { -
contrib/gel/mrc/vpgl/vpgl_proj_camera.txx
old new 230 230 { 231 231 case 1: 232 232 vsl_b_read(is, Pnew); 233 set_matrix(Pnew);233 this->set_matrix(Pnew); 234 234 break; 235 235 default: 236 236 vcl_cerr << "I/O ERROR: vpgl_proj_camera::b_read(vsl_b_istream&)\n" -
contrib/gel/mrc/vpgl/vpgl_rational_camera.txx
old new 378 378 << "SpecId = \"RPC00B\";\n" 379 379 << "BEGIN_GROUP = IMAGE\n" 380 380 << "\n\n" // skip errBias and errRand fields 381 << " lineOffset = " << offset(V_INDX) << '\n'382 << " sampOffset = " << offset(U_INDX) << '\n'383 << " latOffset = " << offset(Y_INDX) << '\n'384 << " longOffset = " << offset(X_INDX) << '\n'385 << " heightOffset = " << offset(Z_INDX) << '\n'386 << " lineScale = " << scale(V_INDX) << '\n'387 << " sampScale = " << scale(U_INDX) << '\n'388 << " latScale = " << scale(Y_INDX) << '\n'389 << " longScale = " << scale(X_INDX) << '\n'390 << " heightScale = " << scale(Z_INDX) << '\n';381 << " lineOffset = " << this->offset(V_INDX) << '\n' 382 << " sampOffset = " << this->offset(U_INDX) << '\n' 383 << " latOffset = " << this->offset(Y_INDX) << '\n' 384 << " longOffset = " << this->offset(X_INDX) << '\n' 385 << " heightOffset = " << this->offset(Z_INDX) << '\n' 386 << " lineScale = " << this->scale(V_INDX) << '\n' 387 << " sampScale = " << this->scale(U_INDX) << '\n' 388 << " latScale = " << this->scale(Y_INDX) << '\n' 389 << " longScale = " << this->scale(X_INDX) << '\n' 390 << " heightScale = " << this->scale(Z_INDX) << '\n'; 391 391 vnl_matrix_fixed<double,4,20> coeffs = this->coefficient_matrix(); 392 392 file_out << " lineNumCoef = ("; 393 393 for (int i=0; i<20; i++) { -
contrib/gel/mrc/vpgl/vpgl_reg_fundamental_matrix.txx
old new 16 16 vnl_matrix_fixed<T,3,3> default_matrix( (T)0 ); 17 17 default_matrix(0,1) = default_matrix(0,2) = (T)1; 18 18 default_matrix(1,0) = default_matrix(2,0) = -(T)1; 19 set_matrix( default_matrix );19 this->set_matrix( default_matrix ); 20 20 } 21 21 22 22 … … 53 53 fm.put( 1, 2, -ex ); 54 54 fm.put( 2, 0, -ey ); 55 55 fm.put( 2, 1, ex ); 56 set_matrix( fm );56 this->set_matrix( fm ); 57 57 return true; 58 58 } 59 59 … … 67 67 fm.put( 1, 2, -b ); 68 68 fm.put( 2, 0, -a ); 69 69 fm.put( 2, 1, b ); 70 set_matrix( fm );70 this->set_matrix( fm ); 71 71 }; 72 72 73 73