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