Determine the collision cross section for some projections of particles.
More...
#include <IMP/em2d/CollisionCrossSection.h>
Determine the collision cross section for some projections of particles.
Definition at line 21 of file CollisionCrossSection.h.
|
cv::Mat | average_projection_ |
|
double | collision_cross_section_ |
|
unsigned int | img_size_ |
|
em2d::MasksManagerPtr | masks_manager_ |
|
unsigned int | n_projections_ |
|
bool | particles_set_ |
|
double | pixel_size_ |
|
em2d::RegistrationResults | regs_ |
|
double | resolution_ |
|
IMP::em2d::CollisionCrossSection::CollisionCrossSection |
( |
unsigned int |
n_projections, |
|
|
double |
resolution, |
|
|
double |
pixel_size, |
|
|
double |
projection_image_size |
|
) |
| |
- Parameters
-
[in] | n_projections | Number of projections to use for obtaining the CCS |
[in] | resolution | "Resolution" to use to generate the projections. |
[in] | pixel_size | size in A/pix to use when generating the projections |
[in] | projection_image_size | The size of the projections to generate; for this value you should request a size so that pixel_size * projection_image_size >= Max distance between two particles. |
double IMP::em2d::CollisionCrossSection::get_ccs |
( |
| ) |
const |
Returns the collision cross section.
Before using this function you need to set the particles with set_model_particles()
- Returns
- The collision cross section
double IMP::em2d::CollisionCrossSection::get_projected_area |
( |
const cv::Mat & |
m | ) |
const |
|
protected |
Gets the sum of the values in the pixels with value > 0.
- Parameters
-
[in] | m | The projected area is computed for this matrix |
- Returns
- Values of the area
virtual ::IMP::VersionInfo IMP::em2d::CollisionCrossSection::get_version_info |
( |
| ) |
const |
|
overridevirtual |
void IMP::em2d::CollisionCrossSection::set_model_particles |
( |
const ParticlesTemp & |
ps | ) |
|
Particles used to calculate their collision cross section
- Parameters
-
void IMP::em2d::CollisionCrossSection::show |
( |
std::ostream & |
out | ) |
const |
Shows information about the class.
- Parameters
-
out | Stream used to show the information |
Definition at line 51 of file CollisionCrossSection.h.
The documentation for this class was generated from the following file: