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
45 const std::vector<std::string>& image_files,
46 double pixel_size,
double resolution = 10.0,
47 unsigned int projection_number = 100,
48 bool reuse_direction =
false);
52 unsigned int get_projection_number()
const {
return projection_number_; }
54 void set_projection_number(
unsigned int n) { projection_number_ = n; }
58 void write_best_projections(std::string file_name,
bool evaluate=
false);
68 std::vector<internal::Image2D<> > images_;
77 unsigned int projection_number_;
80 std::vector<internal::Image2D<> > best_projections_;
86 internal::Projector projector_;
88 bool reuse_direction_;
90 mutable unsigned long counter_;
Class for adding derivatives from restraints to the model.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
IMP::kernel::ModelObjectsTemp do_get_inputs() const
A restraint for fast scoring of Particles vs. em2d class averages.
Abstract base class for all restraints.
A restraint is a term in an IMP ScoringFunction.