Assign pose parameters for 1 image. The weight must be an image of the size of the input image with the appropriate weighting in frequency (normally a gaussian). The pose parameters at the input must have the initial guess of the pose. At the output they contain the parameters estimated by CST Spline Assignment. The maximum number of iterations controls the optimization process.
305 sampling_rate.initConstant(1);
326 long NumberIterPerformed, NumberSuccPerformed,
329 Data.
nx_Cost = max_no_iter + 1;
365 while (Failures(last_iteration_performed - 1) > 0.0)
366 last_iteration_performed--;
369 pose_parameters(0) =
RAD2DEG(output_pose(0, last_iteration_performed - 1));
370 pose_parameters(1) =
RAD2DEG(output_pose(1, last_iteration_performed - 1));
371 pose_parameters(2) =
RAD2DEG(output_pose(2, last_iteration_performed - 1));
372 pose_parameters(3) = output_pose(3, last_iteration_performed - 1);
373 pose_parameters(4) = output_pose(4, last_iteration_performed - 1);
376 retval = Cost(last_iteration_performed - 1);
381 std::cout <<
"There is a problem with one image, angles not assigned\n";
void resize(size_t Ndim, size_t Zdim, size_t Ydim, size_t Xdim, bool copy=true)
long * NumberSuccPerformed
#define MULTIDIM_ARRAY(v)
void CenterFFT(MultidimArray< T > &v, bool forward)
long * NumberIterPerformed
double * OutputParameters
#define MATRIX1D_ARRAY(v)
int cstregistration(struct cstregistrationStruct *Data)
#define MATRIX2D_ARRAY(m)
long * NumberFailPerformed