10 #ifndef IMPEM2D_PCA_FIT_RESTRAINT_H
11 #define IMPEM2D_PCA_FIT_RESTRAINT_H
13 #include <IMP/em2d/em2d_config.h>
14 #include <IMP/em2d/internal/Image2D.h>
15 #include <IMP/em2d/internal/Projector.h>
19 IMPEM2D_BEGIN_NAMESPACE
49 const std::vector<std::string>& image_files,
50 double pixel_size,
double resolution = 10.0,
51 unsigned int projection_number = 100,
52 bool reuse_direction =
false,
53 unsigned int n_components = 1);
57 unsigned int get_projection_number()
const {
return projection_number_; }
59 void set_projection_number(
unsigned int n) { projection_number_ = n; }
80 void write_best_projections(std::string file_name,
bool evaluate=
false);
90 std::vector<internal::Image2D<> > images_;
99 unsigned int projection_number_;
102 std::vector<internal::Image2D<> > best_projections_;
105 std::vector<internal::ProjectionInfo> best_projections_info_;
107 std::vector<internal::ImageTransform> best_image_transform_;
110 internal::Projector projector_;
113 bool reuse_direction_;
116 unsigned int n_components_;
118 mutable unsigned long counter_;
121 IMPEM2D_END_NAMESPACE
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Fast scoring of Particles against electron microscopy class averages.
IMP::ModelObjectsTemp do_get_inputs() const
double get_cross_correlation_coefficient(Image *im1, Image *im2)
Cross correlation between two images.
Abstract base class for all restraints.
Class for adding derivatives from restraints to the model.
A restraint is a term in an IMP ScoringFunction.