IMP  2.2.1
The Integrative Modeling Platform
IMP::em2d::ProjectionMask Class Reference

#include <IMP/em2d/ProjectionMask.h>

Public Member Functions

 ProjectionMask (const em::KernelParameters &KP, const em::RadiusDependentKernelParameters &params, 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 &KP, const em::RadiusDependentKernelParameters &params, 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_
 

Detailed Description

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.

Member Function Documentation

void IMP::em2d::ProjectionMask::apply ( cv::Mat &  m,
const algebra::Vector2D v 
)
Parameters
[out]mmatrix where the values of the mask are added.
[in]vpixel where to apply the values. Currently used as integer.
void IMP::em2d::ProjectionMask::create ( const em::KernelParameters KP,
const em::RadiusDependentKernelParameters params,
double  mass = 1.0 
)
Parameters
[in]KPKernel parameteres to employ. See the EM module
[in]paramsKernel parameteres associated with radius to employ
[in]massMass to give to the mask

The documentation for this class was generated from the following file: