9#ifndef IMPEM_CONVERTERS_H
10#define IMPEM_CONVERTERS_H
12#include <IMP/em/em_config.h>
36 Model *m,
int step = 1);
60 const ParticlesTemp &ps,
Float resolution,
Float apix,
77 const ParticlesTemp &ps,
Float resolution,
Float apix,
82 ps, resolution, apix, weight_key, sig_cutoff, BINARIZED_SPHERE));
83 return dmap.release();
96 const ParticlesTemp &ps,
Float apix,
Class for handling density maps.
Classes to handle individual model particles. (Note that implementation of inline functions is in int...
Represent a molecule as shells of distance from the surface.
Class for storing model, its restraints, constraints, and particles.
static FloatKey get_mass_key()
Class for handling density maps.
Class for sampling a density map from particles.
The class represents a molecule as shells of distance from the surface.
Various general useful macros for IMP.
SampledDensityMap * particles2binarized_density(const ParticlesTemp &ps, Float resolution, Float apix, int sig_cutoff=3, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
algebra::Vector3Ds density2vectors(DensityMap *dmap, Float threshold)
Convert a density grid to a set of vectors.
Particles density2particles(DensityMap *dmap, Float threshold, Model *m, int step=1)
Convert a density grid to a set of particles.
SampledDensityMap * particles2density(const ParticlesTemp &ps, Float resolution, Float apix, int sig_cutoff=3, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
Resample a set of particles into a density grid.
SurfaceShellDensityMap * particles2surface(const ParticlesTemp &ps, Float apix, const FloatKey &weight_key=IMP::atom::Mass::get_mass_key())
Resample a set of particles into a density grid.
Vector< VectorD< 3 > > Vector3Ds
Vector< Pointer< Particle > > Particles
A list of reference-counted Particle objects.
double Float
Basic floating-point value (could be float, double...).
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.
A smart pointer to a reference counted object.