Commit ff9997c1 authored by Andrey Filippov's avatar Andrey Filippov

fixed rByRDist calculation error

parent 26689442
...@@ -363,8 +363,8 @@ extern "C" __global__ void get_tiles_offsets( ...@@ -363,8 +363,8 @@ extern "C" __global__ void get_tiles_offsets(
(extrinsic_corr.imu_move[0] != 0.0) || (extrinsic_corr.imu_move[0] != 0.0) ||
(extrinsic_corr.imu_move[1] != 0.0) || (extrinsic_corr.imu_move[1] != 0.0) ||
(extrinsic_corr.imu_move[2] != 0.0); (extrinsic_corr.imu_move[2] != 0.0);
// Temporary
imu_exists = 0;
#ifdef DEBUG21 #ifdef DEBUG21
if ((ncam == DBG_CAM) && (task_num == DBG_TILE)){ if ((ncam == DBG_CAM) && (task_num == DBG_TILE)){
printf("\nTile = %d, camera= %d\n", task_num, ncam); printf("\nTile = %d, camera= %d\n", task_num, ncam);
...@@ -733,7 +733,7 @@ extern "C" __global__ void calcReverseDistortionTable( ...@@ -733,7 +733,7 @@ extern "C" __global__ void calcReverseDistortionTable(
} }
if (i == 0){ if (i == 0){
rByRDist[0]= (float) 1.0/d; rByRDist[0]= (float) 1.0/d;
break; continue;
} }
double rDist = RBYRDIST_STEP * i; double rDist = RBYRDIST_STEP * i;
double r = (p == 0) ? rDist : rPrev; double r = (p == 0) ? rDist : rPrev;
......
...@@ -648,6 +648,7 @@ int main(int argc, char **argv) ...@@ -648,6 +648,7 @@ int main(int argc, char **argv)
gpu_rot_deriv, gpu_rot_deriv,
sizeof(trot_deriv), sizeof(trot_deriv),
cudaMemcpyDeviceToHost)); cudaMemcpyDeviceToHost));
#if 0
const char* matrices_names[] = { const char* matrices_names[] = {
"rot","d_daz","d_tilt","d_roll","d_zoom"}; "rot","d_daz","d_tilt","d_roll","d_zoom"};
for (int i = 0; i < 5;i++){ for (int i = 0; i < 5;i++){
...@@ -675,6 +676,7 @@ int main(int argc, char **argv) ...@@ -675,6 +676,7 @@ int main(int argc, char **argv)
} }
} }
} }
#endif //#if 0
#endif // TEST_ROT_MATRICES #endif // TEST_ROT_MATRICES
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment