9#ifndef IMPEM_PCA_ALIGNER_H
10#define IMPEM_PCA_ALIGNER_H
12#include <IMP/em/em_config.h>
36 :
Object(
"EM_PCA_Aligner") {
64 IMP::algebra::PrincipalComponentAnalysis map_pc_;
A shared base class to help in debugging and things.
Common base class for heavy weight IMP objects.
Object(std::string name)
Construct an object with the given name.
Version and module information for Objects.
Class for handling density maps.
Fast alignment of points to a density map using principal components.
algebra::Transformation3Ds align(const algebra::Vector3Ds &points) const
Align the principal components of the points to those of the density map.
IMP::VersionInfo get_version_info() const override
Get information about the module and version of the object.
PCAAligner(IMP::em::DensityMap *map, float density_threshold)
Constructor.
Converters of density values.
Principal component analysis of a set of points.
Rotation3D get_rotation_from_matrix(double m00, double m01, double m02, double m10, double m11, double m12, double m20, double m21, double m22)
Generate a Rotation3D object from a rotation matrix.
PrincipalComponentAnalysisD< D > get_principal_components(const Vector< VectorD< D > > &ps)
Perform principal components analysis on a set of vectors.
IMP::Vector< Transformation3D > Transformation3Ds
algebra::Vector3Ds density2vectors(DensityMap *dmap, Float threshold)
Convert a density grid to a set of vectors.
Vector< VectorD< 3 > > Vector3Ds
Vector3D get_vector_product(const Vector3D &p1, const Vector3D &p2)
Return the vector product (cross product) of two vectors.