32 addUsageLine(
"+This program flips the phase of those frequencies that were already ");
33 addUsageLine(
"+flipped by the CTF. Flipping the phase at the level of the micrograph is recommended.");
37 addParamsLine(
" [--sampling <T=-1>] : Sampling rate of the input micrograph.");
38 addParamsLine(
" : If not given, then it is assumed to be the sampling rate in the ctfparam times the downsampling.");
39 addParamsLine(
" [--downsampling <D=1>] : Downsampling factor of the input micrograph with respect to the original");
57 <<
"input_micrograph: " <<
fn_in << std::endl
58 <<
"output_micrograph: " <<
fn_out << std::endl
59 <<
"ctf_param_file: " <<
fnt_ctf << std::endl
60 <<
"sampling: " <<
Tm << std::endl
98 double iTm=1.0/ctf.
Tm;
101 for (
size_t i=0;
i<
YSIZE(M_inFourier); ++
i)
105 for (
size_t j=0;
j<
XSIZE(M_inFourier); ++
j)
double getDoubleParam(const char *param, int arg=0)
#define DIRECT_A2D_ELEM(v, i, j)
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 changeSamplingRate(double newTm)
void read(const FileName &fn, bool disable_if_not_K=true)
const char * getParam(const char *param, int arg=0)
double Tm
Sampling rate (A/pixel)
void precomputeValues(double X, double Y)
Precompute values for a given frequency.
int verbose
Verbosity level.
double getValuePureWithoutDampingAt(bool show=false) const
Compute pure CTF without damping at (U,V). Continuous frequencies.
__device__ float FFT_IDX2DIGFREQ(int idx, int size)
void produceSideInfo()
Produce Side information.
int read(const FileName &name, DataMode datamode=DATA, size_t select_img=ALL_IMAGES, bool mapData=false, int mode=WRITE_READONLY)
void actualPhaseFlip(MultidimArray< double > &I, CTFDescription ctf)
void addUsageLine(const char *line, bool verbatim=false)
void addParamsLine(const String &line)