Xmipp
v3.23.11-Nereus
|
#include <mpi_classify_CL2D.h>
Public Member Functions | |
CL2D () | |
~CL2D () | |
CL2D (const CL2D &)=delete | |
CL2D (const CL2D &&)=delete | |
CL2D & | operator= (const CL2D &)=delete |
CL2D & | operator= (const CL2D &&)=delete |
void | readImage (Image< double > &I, size_t objId, bool applyGeo) const |
Read Image. More... | |
void | initialize (MetaDataDb &_SF, std::vector< MultidimArray< double > > &_codes0) |
Initialize. More... | |
void | shareAssignments (bool shareAssignment, bool shareUpdates, bool shareNonCorr) |
Share assignments. More... | |
void | shareSplitAssignments (Matrix1D< int > &assignment, CL2DClass *node1, CL2DClass *node2) const |
Share split assignment. More... | |
void | write (const FileName &fnODir, const FileName &fnRoot, int level) const |
Write the nodes. More... | |
void | lookNode (MultidimArray< double > &I, int oldnode, int &newnode, CL2DAssignment &bestAssignment) |
void | transferUpdates () |
void | run (const FileName &fnODir, const FileName &fnOut, int level) |
int | cleanEmptyNodes () |
void | splitNode (CL2DClass *node, CL2DClass *&node1, CL2DClass *&node2, std::vector< size_t > &finalAssignment) const |
void | splitFirstNode () |
Public Attributes | |
size_t | Nimgs =0 |
Number of images. More... | |
MetaDataDb * | SF =nullptr |
Pointer to input metadata. More... | |
std::vector< CL2DClass * > | P |
List of nodes. More... | |
Class for a CL2D
Definition at line 160 of file mpi_classify_CL2D.h.
|
inline |
CL2D::~CL2D | ( | ) |
|
delete |
|
delete |
int CL2D::cleanEmptyNodes | ( | ) |
Clean empty nodes. The number of nodes removed is returned.
Definition at line 1255 of file mpi_classify_CL2D.cpp.
void CL2D::initialize | ( | MetaDataDb & | _SF, |
std::vector< MultidimArray< double > > & | _codes0 | ||
) |
Initialize.
Definition at line 748 of file mpi_classify_CL2D.cpp.
void CL2D::lookNode | ( | MultidimArray< double > & | I, |
int | oldnode, | ||
int & | newnode, | ||
CL2DAssignment & | bestAssignment | ||
) |
Look for a node suitable for this image. The image is rotationally and translationally aligned with the best node.
Definition at line 944 of file mpi_classify_CL2D.cpp.
void CL2D::readImage | ( | Image< double > & | I, |
size_t | objId, | ||
bool | applyGeo | ||
) | const |
Read Image.
Definition at line 731 of file mpi_classify_CL2D.cpp.
Quantize with the current number of codevectors
Definition at line 1039 of file mpi_classify_CL2D.cpp.
void CL2D::shareAssignments | ( | bool | shareAssignment, |
bool | shareUpdates, | ||
bool | shareNonCorr | ||
) |
Share assignments.
Definition at line 536 of file mpi_classify_CL2D.cpp.
void CL2D::shareSplitAssignments | ( | Matrix1D< int > & | assignment, |
CL2DClass * | node1, | ||
CL2DClass * | node2 | ||
) | const |
Share split assignment.
Definition at line 639 of file mpi_classify_CL2D.cpp.
void CL2D::splitFirstNode | ( | ) |
Split the widest node
Definition at line 1633 of file mpi_classify_CL2D.cpp.
void CL2D::splitNode | ( | CL2DClass * | node, |
CL2DClass *& | node1, | ||
CL2DClass *& | node2, | ||
std::vector< size_t > & | finalAssignment | ||
) | const |
Split node
Definition at line 1272 of file mpi_classify_CL2D.cpp.
void CL2D::transferUpdates | ( | ) |
Write the nodes.
Definition at line 898 of file mpi_classify_CL2D.cpp.
size_t CL2D::Nimgs =0 |
Number of images.
Definition at line 163 of file mpi_classify_CL2D.h.
std::vector<CL2DClass *> CL2D::P |
List of nodes.
Definition at line 169 of file mpi_classify_CL2D.h.
MetaDataDb* CL2D::SF =nullptr |
Pointer to input metadata.
Definition at line 166 of file mpi_classify_CL2D.h.