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);
212 IMPEM2D_END_NAMESPACE
void do_project_particles(const kernel::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.
projection masks Copyright 2007-2015 IMP Inventors. All rights reserved.
unsigned int get_enclosing_image_size(const kernel::ParticlesTemp &ps, double pixel_size, unsigned int slack)
Get an automatic size for an image that contains the particles.
void get_projection(em2d::Image *img, const kernel::ParticlesTemp &ps, const RegistrationResult ®, const ProjectingOptions &options, MasksManagerPtr masks=MasksManagerPtr(), String name="")
Generates a projection from particles.
Virtual class for reader/writers of images.
IMP::base::Vector< String > Strings
Standard way to pass a bunch of String values.
em2d::Images get_projections(const kernel::ParticlesTemp &ps, const RegistrationResults ®istration_values, int rows, int cols, const ProjectingOptions &options, Strings names=Strings())
Generates projections from particles.
Virtual class for reader/writers of images Copyright 2007-2015 IMP Inventors. All rights reserved...
Parameters given as options to the get_projections() functions.
A smart pointer to a reference counted object.
Interface with OpenCV Copyright 2007-2015 IMP Inventors. All rights reserved.
ProjectingOptions(double ps, double res)
IMP images for Electron Microscopy using openCV matrices Copyright 2007-2015 IMP Inventors. All rights reserved.
#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)
Images create_evenly_distributed_projections(const kernel::ParticlesTemp &ps, unsigned int n, const ProjectingOptions &options)
Simple 3D rotation class.
Parameters needed for the core projection routine.
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
Operations involving FFT Copyright 2007-2015 IMP Inventors. All rights reserved.
Registration results class Copyright 2007-2015 IMP Inventors. All rights reserved.
Decorator for a sphere-like particle.
std::string String
Basic string value.
2D Electron Microscopy images in IMP