25 #ifndef _PROG_VQ_VOLUMES 26 #define _PROG_VQ_VOLUMES 94 PyObject *pyIfourierMaskFRM=
nullptr;
139 void transferUpdate();
145 void constructFourierMaskFRM();
153 void lookForNeighbours(
const std::vector<CL3DClass *> listP,
int K);
174 std::vector<CL3DClass *>
P;
185 void shareAssignments(
bool shareAssignment,
bool shareUpdates);
200 void transferUpdates();
207 int cleanEmptyNodes();
212 std::vector<size_t> &finalAssignment,
213 bool iterate=
true)
const;
216 void splitFirstNode();
316 void produceSideInfo();
MultidimArray< std::complex< double > > Pfourier
MultidimArray< double > IfourierMagSorted
double maxShift
Max shift.
GaussianInterpolator gaussianInterpolator
double sparsity
Sparsity factor (0<f<1; 1=drop all coefficients, 0=do not drop any coefficient)
std::vector< size_t > objId
std::vector< CL3DClass * > P
List of nodes.
double maxShiftX
Maximum shift X.
void write(std::ostream &os, const datablock &db)
std::vector< CL3DAssignment > currentListImg
PyObject * frmFunc
Pointer to the Python FRM alignment function.
int Niter
Number of iterations.
MetaDataDb * SF
Pointer to input metadata.
double maxPsi
Maximum psi.
bool operator()(CL3DClass *const &rpStart, CL3DClass *const &rpEnd)
bool generateAlignedVolumes
Generate aligned subvolumes.
MultidimArray< std::complex< double > > Pupdate
FileName fnSel
Input selfile with the images to quantify.
bool randomizeStartingOrientation
Use this option to avoid aligning at the beginning all the missing wedges.
double maxShiftY
Maximum shift Y.
void copyAlignment(const CL3DAssignment &alignment)
Copy alignment.
size_t Nimgs
Number of images.
int Ncodes
Final number of code vectors.
std::ostream & operator<<(std::ostream &out, const CL3DAssignment &assigned)
Show.
CL3DAssignment()
Empty constructor.
double DWTsparsity
DWT Sparsity factor (0<f<1; 1=drop all coefficients, 0=do not drop any coefficient) ...
MultidimArray< double > Iaux
MultidimArray< std::complex< double > > Ifourier
int Nneighbours
Number of neighbours.
double maxShiftZ
Maximum shift Z.
bool dontAlign
Don't align.
MultidimArray< int > IfourierMaskFRM
MultidimArray< double > Paux
MultidimArray< unsigned char > maxFreqMask
MaxFreq mask.
double maxTilt
Maximum tilt.
std::vector< int > neighboursIdx
PyObject * wedgeClass
Pointer to the Python GeneralWedge class.
void readAlignment(const Matrix2D< double > &M)
Read alignment parameters.
MultidimArray< double > PupdateMask
bool classifyAllImages
Clasify all images.
FourierTransformer transformer
FileName fnOut
Output rootname.
int Ncodes0
Initial number of code vectors.
double maxRot
Maximum rot.
FileName fnCodes0
Input selfile with initial codes.
double PminSize
Minimum size of a node.
FileName fnSym
Symmetry file or code.
std::vector< CL3DAssignment > nextListImg
double maxFreq
Maximum frequency for the alignment.