Fix custom_angle with rewrite of traj tool
Fix custom_angle with new traj tool
@@ -72,7 +72,7 @@ int main_traj(int argc, char* argv[])
OPT_SET('3', &conf.d3d, "3D"),
OPT_SET('c', &conf.asym_traj, "asymmetric trajectory [DC sampled]"),
OPT_VEC2('z', &z_usamp, "Ref:Acel", "Undersampling in z-direction."),
- OPT_STRING('C', &custom_angle, "file", "custom_angle"),
+ OPT_STRING('C', &custom_angle, "file", "custom_angle file [phi + i * psi]"),
};
cmdline(&argc, argv, 1, 1, usage_str, help_str, ARRAY_SIZE(opts), opts);
@@ -90,7 +90,7 @@ int main_traj(int argc, char* argv[])
if(Y != sdims[0]){
- debug_printf(DP_INFO, "According to the custom angle file : y = %d\n",sdims[0]);
+ debug_printf(DP_INFO, "According to the custom angle file : number of projection (y) = %d\n",sdims[0]);
Y = sdims[0];
}
@@ -215,13 +215,13 @@ int main_traj(int argc, char* argv[])
angle2 = s * M_PI / Y * (conf.full_circle ? 2 : 1) * split;
if (NULL != custom_angle)
- angle2 = cimag(custom_angle_val[p%X]);
+ angle2 = cimag(custom_angle_val[j]);
}
if (NULL != custom_angle)
- angle = creal(custom_angle_val[p%X]);
+ angle = creal(custom_angle_val[j]);
float d[3] = { 0., 0., 0 };
