Xmipp
v3.23.11-Nereus
|
#include "python_utils.h"
#include <Python.h>
#include <numpy/ndarrayobject.h>
#include <core/multidim_array.h>
Go to the source code of this file.
Macros | |
#define | NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION |
Functions | |
void | alignVolumesFRM (PyObject *pFunc, const MultidimArray< double > &Iref, MultidimArray< double > &I, PyObject *Imask, double &rot, double &tilt, double &psi, double &x, double &y, double &z, double &score, Matrix2D< double > &A, int maxshift=10, double maxFreq=0.25, const MultidimArray< int > *mask=nullptr) |
void alignVolumesFRM | ( | PyObject * | pFunc, |
const MultidimArray< double > & | Iref, | ||
MultidimArray< double > & | I, | ||
PyObject * | Imask, | ||
double & | rot, | ||
double & | tilt, | ||
double & | psi, | ||
double & | x, | ||
double & | y, | ||
double & | z, | ||
double & | score, | ||
Matrix2D< double > & | A, | ||
int | maxshift = 10 , |
||
double | maxFreq = 0.25 , |
||
const MultidimArray< int > * | mask = nullptr |
||
) |
Align two volumes using FRM. The first argument is the pointer to the FRM python function. You may obtain it with getPointerToPythonFRMFunction()
Imask is a mask in Fourier space for I Maxshift is in pixels. MaxFreq is in digital frequency.
A is the transformation matrix that needs to be applied on I to fit Iref.
If apply is set, then I is substituted with the aligned volume.
Definition at line 35 of file frm.cpp.