IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
embedding.h
Go to the documentation of this file.
1/**
2 * \file IMP/em/embedding.h
3 * \brief Cluster sets of points.
4 *
5 * Copyright 2007-2022 IMP Inventors. All rights reserved.
6 *
7 */
8
9#ifndef IMPEM_EMBEDDING_H
10#define IMPEM_EMBEDDING_H
11
12#include <IMP/em/em_config.h>
13#include "DensityMap.h"
15
16IMPEM_BEGIN_NAMESPACE
17
18/** Generate a set of points from the voxels in a em::DensityMap
19 which are above a certain threshold.
20 */
21class IMPEMEXPORT HighDensityEmbedding : public statistics::Embedding {
22 algebra::Vector3Ds points_;
23
24 public:
25 HighDensityEmbedding(DensityMap *dm, double threshold);
26 algebra::VectorKD get_point(unsigned int i) const override;
27 unsigned int get_number_of_items() const override;
28 IMP_OBJECT_METHODS(HighDensityEmbedding);
29};
30
31IMPEM_END_NAMESPACE
32
33#endif /* IMPEM_EMBEDDING_H */
Class for handling density maps.
Cluster sets of points.
Class for handling density maps.
Definition DensityMap.h:95
Store data to be clustered for embedding based algorithms.
Definition Embedding.h:25
Vector< VectorD< 3 > > Vector3Ds
Definition VectorD.h:409
VectorD<-1 > VectorKD
Definition VectorD.h:423
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.