9#ifndef IMPEM_SURFACE_SHELL_DENSITY_MAP_H
10#define IMPEM_SURFACE_SHELL_DENSITY_MAP_H
12#include <IMP/em/em_config.h>
21#define IMP_DEFAULT_NUM_SHELLS 5
22#define IMP_SIG_CUTOFF 3
28#define IMP_BACKGROUND_VAL 0.0
29#define IMP_SURFACE_VAL 1.0
51 int num_shells = IMP_DEFAULT_NUM_SHELLS);
89 void set_neighbor_mask();
91 std::vector<long> neighbor_shift_;
92 std::vector<double> neighbor_dist_;
static FloatKey get_mass_key()
SampledDensityMap(KernelType kt=GAUSSIAN)
Creates a new density map for sampled map.
The class represents a molecule as shells of distance from the surface.
void set_surface_shell(std::vector< long > *shell)
void resample() override
Resample the grid to consist of density shells of a model.
bool has_background_neighbor(long voxel_ind) const
Checks if the one of the neighbors of the voxel is a background voxel.
SurfaceShellDensityMap(const DensityHeader &header)
SurfaceShellDensityMap()
Creates a new density map.
void binarize(float scene_val)
Set the value of the map voxels as either scene or background.
SurfaceShellDensityMap(const ParticlesTemp &ps, float voxel_size, IMP::FloatKey mass_key=IMP::atom::Mass::get_mass_key(), int num_shells=5)
Generate a surface shell density map from the input particles.
An approximation of the exponential function.
IMP::Vector< IMP::Pointer< SurfaceShellDensityMap > > SurfaceShellDensityMaps
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
#define IMP_REF_COUNTED_DESTRUCTOR(Name)
Set up destructor for a ref counted object.