9#ifndef IMPEM2D_RIGID_BODIES_IMAGE_FIT_RESTRAINT_H
10#define IMPEM2D_RIGID_BODIES_IMAGE_FIT_RESTRAINT_H
22IMPEM2D_BEGIN_NAMESPACE
29 bool operator()(
const Ints &a,
const Ints &b)
const {
30 for (
unsigned int i = 0; i < a.size(); ++i) {
31 if (a[i] < b[i])
return true;
32 if (a[i] > b[i])
return false;
38typedef std::pair<Ints, unsigned int> KeyIndexPair;
39typedef std::map<Ints, unsigned int, IntsOrder> KeyIndexMap;
40typedef std::vector<KeyIndexMap> KeyIndexMaps;
51 std::vector<em2d::Images> rigid_bodies_masks_;
54 core::RigidBodies rigid_bodies_;
IMP images for Electron Microscopy Copyright 2007-2026 IMP Inventors. All rights reserved.
A nullptr-initialized pointer to an IMP Object.
Abstract base class for all restraints.
Simple 3D rotation class.
Class for adding derivatives from restraints to the model.
Restraint(Model *m, std::string name)
Create a restraint and register it with the model.
A decorator for a rigid body.
2D Electron Microscopy images in IMP
Parameters needed for the core projection routine.
Fit rigid bodies to an image.
void set_orientations(const core::RigidBody &rb, const algebra::Rotation3Ds &rots)
Set the possible rotations that a rigid body can have.
unsigned int get_number_of_masks(const core::RigidBody &rb) const
Return the number of precomputed masks associated with the rigid body.
RigidBodiesImageFitRestraint(ScoreFunction *scf, const core::RigidBodies &rbs, Image *img)
Initialize the class.
Base class for all scoring functions related to em2d.
Various general useful macros for IMP.
IMP::Vector< Rotation3D > Rotation3Ds
Ints get_unique_index(const algebra::Rotation3D &rot)
Map a rotation to a list of 4 "unique" integers.
IMP::Vector< IMP::Pointer< RigidBodiesImageFitRestraint > > RigidBodiesImageFitRestraints
IMP::Vector< Int > Ints
Standard way to pass a bunch of Int values.
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Generation of projections from models or density maps Copyright 2007-2026 IMP Inventors....
functionality for defining rigid bodies
Scoring functions for 2D Copyright 2007-2026 IMP Inventors. All rights reserved.
A smart pointer to a ref-counted Object that is a class member.
A smart pointer to a reference counted object.