9 #ifndef IMPEM_MASKING_H
10 #define IMPEM_MASKING_H
12 #include <IMP/em/em_config.h>
23 inline const std::vector<double> *get_neighbor_shift()
const {
24 return &neighbor_shift_;
26 inline const std::vector<double> *get_neighbor_dist()
const {
27 return &neighbor_dist_;
29 inline const std::vector<double> *get_neighbor_dist_exp()
const {
30 return &neighbor_dist_exp_;
33 void show(std::ostream &out)
const { out <<
"RadiusDependentDistanceMask"; }
36 std::vector<double> neighbor_shift_;
37 std::vector<double> neighbor_dist_;
38 std::vector<double> neighbor_dist_exp_;
47 : initialized_(
false), header_(
nullptr) {}
50 : initialized_(
true), header_(header) {}
52 void show(std::ostream &out)
const { out <<
"DistanceMask"; }
53 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
68 float eps = 0.001)
const;
70 bool is_mask_set(
float radius,
float eps = 0.001) {
71 return get_mask(radius, eps) !=
nullptr;
75 typedef std::map<float, const RadiusDependentDistanceMask *> MASK_MAP;
Calculates and stores Gaussian kernel parameters.
Calculates and stores Gaussian kernel parameters.
Calculates and stores a distance mask.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.