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);
71 IMPEM_DEPRECATED_METHOD_DECL(2.6)
72 void binaries(
float scene_val) {
73 IMPEM_DEPRECATED_METHOD_DEF(2.6,
"Use binarize() instead");
83 bool has_background_neighbor(
long voxel_ind)
const;
93 void set_surface_shell(std::vector<long> *shell);
95 void set_neighbor_mask();
97 std::vector<long> neighbor_shift_;
98 std::vector<emreal> neighbor_dist_;
static FloatKey get_mass_key()
DensityMap * binarize(DensityMap *orig_map, float threshold, bool reverse=false)
Return a map with 0 for all voxels below the threshold and 1 for those above.
virtual void resample()
Resample beads on an EM grid.
#define IMP_REF_COUNTED_DESTRUCTOR(Name)
Ref counted objects should have private destructors.
An approximation of the exponential function.
Class for sampling a density map from particles.
The class represents a molecule as shells of distance from the surface.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.