7 #ifndef IMPEM2D_PROJECT_H
8 #define IMPEM2D_PROJECT_H
10 #include "IMP/em2d/em2d_config.h"
28 IMPEM2D_BEGIN_NAMESPACE
31 class IMPEM2DEXPORT ProjectingParameters {
33 double pixel_size, resolution;
35 ProjectingParameters() {};
42 ProjectingParameters(
double ps,
double res):
43 pixel_size(ps), resolution(res) {};
49 void show(std::ostream &out = std::cout)
const {
50 out <<
"ProjectingParameters " << pixel_size
51 <<
" " << resolution << std::endl;};
59 class IMPEM2DEXPORT ProjectingOptions:
public ProjectingParameters {
65 void init_defaults() {
68 clear_matrix_before_projecting =
true;
72 IMP::Pointer<ImageReaderWriter> srw;
76 bool clear_matrix_before_projecting;
81 ProjectingOptions() {init_defaults();}
89 ProjectingOptions(
double ps,
double res): ProjectingParameters(ps, res) {
93 ProjectingOptions(
double ps,
double res, ImageReaderWriter *irw):
94 ProjectingParameters(ps, res), srw(irw) {
102 void show(std::ostream &out = std::cout)
const {
103 out <<
"ProjectingOptions " << pixel_size
104 <<
" " << resolution << std::endl;};
120 int rows,
int cols,
const ProjectingOptions &options,
132 int rows,
int cols,
const ProjectingOptions &options,
148 MasksManagerPtr masks=MasksManagerPtr(),
String name=
"");
165 const ProjectingOptions &options,
166 MasksManagerPtr masks);
175 const ParticlesTemp &ps,
177 const ProjectingOptions &options);
221 IMPEM2D_END_NAMESPACE