52 <<
"Input tomogram : " <<
fn_tomo << std::endl
53 <<
"Input geometry : " <<
fn_geom << std::endl
54 <<
"Input reference : " <<
fn_ref << std::endl
55 <<
"Painting mode : " <<
modeStr << std::endl
63 addUsageLine(
"This program takes a tomogram, a reference subtomogram and a metadata with geometrical parameters");
64 addUsageLine(
"(x,y,z) and places the reference subtomogram on the tomogram at the designated locations (map back).");
65 addUsageLine(
"The program has several 'painting' options:");
66 addUsageLine(
" 1. Copying the reference onto the tomogram");
67 addUsageLine(
" 2. Setting the region occupied by the reference in the tomogram to the average value of that region");
68 addUsageLine(
" 3. Add the reference multiplied by a constant to the location specified");
69 addUsageLine(
" 4. Copy a binarized version of the reference onto the tomogram");
71 addParamsLine(
" [-o <tomogram=\"\">] : Output tomogram mapped back");
72 addParamsLine(
" --geom <geometry> : Subtomograms coordinates and rotation angles (it must be a metadata)");
97 else if (
modeStr==
"copy_binary")
107 #define GET_TOMO_COORD \ 109 if (xp<0 || xp>=XSIZE(mTomo))\ 112 if (yp<0 || yp>=YSIZE(mTomo))\ 115 if (zp<0 || zp>=ZSIZE(mTomo))\ 129 for (
const auto& row :
mdGeom)
137 double avg=0, avgN=0;
double getDoubleParam(const char *param, int arg=0)
void defineParams()
Define parameters.
void write(const FileName &name="", size_t select_img=ALL_IMAGES, bool isStack=false, int mode=WRITE_OVERWRITE, CastWriteMode castMode=CW_CAST, int _swapWrite=0)
void readParams()
Read arguments.
ql0001_ & k(htemp+1),(cvec+1),(atemp+1),(bj+1),(bl+1),(bu+1),(x+1),(clamda+1), &iout, infoqp, &zero,(w+1), &lenw,(iw+1), &leniw, &glob_grd.epsmac
Image< double > reference
#define A3D_ELEM(V, k, i, j)
#define FOR_ALL_ELEMENTS_IN_ARRAY3D(V)
const char * getParam(const char *param, int arg=0)
int verbose
Verbosity level.
#define DIRECT_A3D_ELEM(v, k, i, j)
int read(const FileName &name, DataMode datamode=DATA, size_t select_img=ALL_IMAGES, bool mapData=false, int mode=WRITE_READONLY)
void addUsageLine(const char *line, bool verbatim=false)
void addParamsLine(const String &line)