IMP Reference Guide
2.7.0
The Integrative Modeling Platform
|
#include <IMP/em2d/ProjectionMask.h>
Mask that contains the projection of a given particles. This matrices speed up projecting because the only have to be computed once for a model
Definition at line 36 of file ProjectionMask.h.
Public Member Functions | |
ProjectionMask (const em::KernelParameters &kparams, double voxelsize, double mass=1.0) | |
void | apply (cv::Mat &m, const algebra::Vector2D &v) |
Adds the values of the mask to a matrix at the given pixel. More... | |
void | create (const em::KernelParameters &kparams, double mass=1.0) |
Generates the mask. More... | |
void | show (std::ostream &out=std::cout) const |
Protected Attributes | |
cv::Mat | data_ |
int | dim_ |
double | sq_pixelsize_ |
void IMP::em2d::ProjectionMask::apply | ( | cv::Mat & | m, |
const algebra::Vector2D & | v | ||
) |
Adds the values of the mask to a matrix at the given pixel.
[out] | m | matrix where the values of the mask are added. |
[in] | v | pixel where to apply the values. Currently used as integer. |
void IMP::em2d::ProjectionMask::create | ( | const em::KernelParameters & | kparams, |
double | mass = 1.0 |
||
) |
Generates the mask.
[in] | KP | Kernel parameters to employ. See the EM module |
[in] | mass | Mass to give to the mask |