10 #ifndef IMPEM2D_DOMINO_PARTICLE_STATES_H
11 #define IMPEM2D_DOMINO_PARTICLE_STATES_H
23 IMPEM2D_BEGIN_NAMESPACE
34 unsigned int number_of_states_;
48 const String &name =
"GridStates")
49 : domino::ParticleStates(name),
50 positions_(positions),
51 orientations_(orientations) {
52 number_of_states_ = positions_.size() * orientations_.size();
65 virtual unsigned int get_number_of_particle_states() const IMP_OVERRIDE;
66 virtual
void load_particle_state(
unsigned int, kernel::
Particle *) const
98 const String &name =
"ProjectionStates")
99 : GridStates(positions, orientations, name), projections_(projections) {
100 number_of_states_ = positions_.size() * orientations_.size();
108 virtual unsigned int get_number_of_particle_states() const IMP_OVERRIDE;
109 virtual
void load_particle_state(
unsigned int, kernel::
Particle *) const
116 IMPEM2D_END_NAMESPACE
Import IMP/kernel/base_types.h in the namespace.
A nullptr-initialized pointer to an IMP Object.
#define IMP_OBJECT_NO_WARNING(Name)
Only to work around a gcc bug.
void get_projection(em2d::Image *img, const kernel::ParticlesTemp &ps, const RegistrationResult ®, const ProjectingOptions &options, MasksManagerPtr masks=MasksManagerPtr(), String name="")
Generates a projection from particles.
IMP images for Electron Microscopy using openCV matrices Copyright 2007-2014 IMP Inventors. All rights reserved.
functionality for defining rigid bodies
Various important macros for implementing decorators.
Class to handle individual model particles.
Simple 3D rotation class.
ProjectionStates(const algebra::Vector3Ds &positions, const algebra::Rotation3Ds &orientations, const Images &projections, const String &name="ProjectionStates")
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
Import IMP/kernel/Particle.h in the namespace.
GridStates(const algebra::Vector3Ds &positions, const algebra::Rotation3Ds &orientations, const String &name="GridStates")
A beyesian infererence-based sampler.
std::string String
Basic string value.
2D Electron Microscopy images in IMP