9 #ifndef IMPEM2D_RIGID_BODIES_IMAGE_FIT_RESTRAINT_H
10 #define IMPEM2D_RIGID_BODIES_IMAGE_FIT_RESTRAINT_H
22 IMPEM2D_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;
38 typedef std::pair<Ints, unsigned int> KeyIndexPair;
39 typedef std::map<Ints, unsigned int, IntsOrder> KeyIndexMap;
40 typedef std::vector<KeyIndexMap> KeyIndexMaps;
51 std::vector<em2d::Images> rigid_bodies_masks_;
Generation of projections from models or density maps Copyright 2007-2015 IMP Inventors. All rights reserved.
Fit rigid bodies to an image.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Various general useful macros for IMP.
IMP images for Electron Microscopy using openCV matrices Copyright 2007-2015 IMP Inventors. All rights reserved.
A smart pointer to a reference counted object.
Scoring functions for 2D Copyright 2007-2015 IMP Inventors. All rights reserved.
functionality for defining rigid bodies
Base class for all scoring functions related to em2d.
Simple 3D rotation class.
Parameters needed for the core projection routine.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
A nullptr-initialized pointer to an IMP Object.
Ints get_unique_index(const algebra::Rotation3D &rot)
For a unique 4 ints ( 2 first decimal positions) for a rotation.
Abstract base class for all restraints.
A decorator for a rigid body.
virtual ModelObjectsTemp do_get_inputs() const =0
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for adding derivatives from restraints to the model.
2D Electron Microscopy images in IMP
A restraint is a term in an IMP ScoringFunction.