7 #ifndef IMPEM2D_PROJECT_H
8 #define IMPEM2D_PROJECT_H
10 #include "IMP/em2d/em2d_config.h"
27 IMPEM2D_BEGIN_NAMESPACE
32 double pixel_size, resolution;
42 : pixel_size(ps), resolution(res) {};
48 void show(std::ostream &out = std::cout)
const {
49 out <<
"ProjectingParameters " << pixel_size <<
" " << resolution
65 void init_defaults() {
68 clear_matrix_before_projecting =
true;
77 bool clear_matrix_before_projecting;
103 void show(std::ostream &out = std::cout)
const {
104 out <<
"ProjectingOptions " << pixel_size <<
" " << resolution << std::endl;
152 MasksManagerPtr masks = MasksManagerPtr(),
170 MasksManagerPtr masks);
210 const ParticlesTemp &ps,
double pixel_size,
unsigned int slack);
212 IMPEM2D_END_NAMESPACE
Images create_evenly_distributed_projections(const ParticlesTemp &ps, unsigned int n, const ProjectingOptions &options)
projection masks Copyright 2007-2019 IMP Inventors. All rights reserved.
IMP::Vector< String > Strings
Standard way to pass a bunch of String values.
Include all non-deprecated headers in IMP.
Virtual class for reader/writers of images.
void do_project_particles(const ParticlesTemp &ps, cv::Mat &m2, const algebra::Rotation3D &R, const algebra::Vector3D &translation, const ProjectingOptions &options, MasksManagerPtr masks)
Projects a set of particles. This is the core function that others call.
Virtual class for reader/writers of images Copyright 2007-2019 IMP Inventors. All rights reserved...
Parameters given as options to the get_projections() functions.
Interface with OpenCV Copyright 2007-2019 IMP Inventors. All rights reserved.
ProjectingOptions(double ps, double res)
A more IMP-like version of the std::vector.
IMP images for Electron Microscopy using openCV matrices Copyright 2007-2019 IMP Inventors. All rights reserved.
A smart pointer to a reference counted object.
#define IMP_VALUES(Name, PluralName)
Define the type for storing sets of values.
ProjectingParameters(double ps, double res)
Stores and converts spherical coordinates.
algebra::Vector2Ds do_project_vectors(const algebra::Vector3Ds &ps, const algebra::Rotation3D &R, const algebra::Vector3D &translation, const algebra::Vector3D ¢er)
Project the points contained in Vector3Ds.
void save_images(Images images, const Strings &names, const ImageReaderWriter *rw)
Simple 3D rotation class.
Parameters needed for the core projection routine.
unsigned int get_enclosing_image_size(const ParticlesTemp &ps, double pixel_size, unsigned int slack)
Get an automatic size for an image that contains the particles.
A nullptr-initialized pointer to an IMP Object.
Class to manage registration results.
void show(std::ostream &out=std::cout) const
void show(std::ostream &out=std::cout) const
em2d::Images get_projections(const ParticlesTemp &ps, const RegistrationResults ®istration_values, int rows, int cols, const ProjectingOptions &options, Strings names=Strings())
Generates projections from particles.
Operations involving FFT Copyright 2007-2019 IMP Inventors. All rights reserved.
Registration results class Copyright 2007-2019 IMP Inventors. All rights reserved.
Decorator for a sphere-like particle.
std::string String
Basic string value.
2D Electron Microscopy images in IMP
void get_projection(em2d::Image *img, const ParticlesTemp &ps, const RegistrationResult ®, const ProjectingOptions &options, MasksManagerPtr masks=MasksManagerPtr(), String name="")
Generates a projection from particles.