47 std::cout <<
"Input volume: " <<
fn_vol << std::endl
48 <<
"Relaxation factor: " <<
mu << std::endl;
55 addUsageLine(
"+This utility allows you to make reconstructions removing the effect ");
56 addUsageLine(
"+of the CTF. The projection images are modified according to a current ");
57 addUsageLine(
"+guess of the reconstruction and the CTF definition. The modified images ");
58 addUsageLine(
"+should be used for reconstruction which now serves as a new current guess ");
60 addUsageLine(
"+The method is fully described at http://www.ncbi.nlm.nih.gov/pubmed/15005161");
62 addUsageLine(
"+The program will assume that the image phase have already been corrected");
63 addUsageLine(
"+(otherwise the initial solution is too far from the true solution and the ");
67 defaultComments[
"-i"].addComment(
"Metadata with images and corresponding CTFs (ctfdat)");
69 addParamsLine(
" --vol <volume> : Volume with the current reconstruction");
71 addExampleLine(
"xmipp_ctf_correct_idr -i images.sel --vol currentGuess.vol -o idrCorrectedImages.stk");
91 Itheo_CTF.setXmippOrigin();
133 save.
write(
"PPPtheo_CTF.xmp");
135 save.
write(
"PPPdiff.xmp");
137 std::cout <<
"Press any key to continue\n";
void processImage(const FileName &fnImg, const FileName &fnImgOut, const MDRow &rowIn, MDRow &rowOut)
Process one image.
double getDoubleParam(const char *param, int arg=0)
double psi(const size_t n=0) const
FileName fn_vol
Reference volume.
void preProcess()
Preprocess.
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)
double rot(const size_t n=0) const
int readApplyGeo(const FileName &name, const MDRow &row, const ApplyGeoParams ¶ms=DefaultApplyGeoParams)
void addSeeAlsoLine(const char *seeAlso)
void read(const FileName &fn, bool disable_if_not_K=true)
double tilt(const size_t n=0) const
T & getValue(MDLabel label)
double mu
Relaxation factor.
const char * getParam(const char *param, int arg=0)
#define FOR_ALL_DIRECT_ELEMENTS_IN_MULTIDIMARRAY(v)
#define DIRECT_MULTIDIM_ELEM(v, n)
void addExampleLine(const char *example, bool verbatim=true)
void projectVolume(FourierProjector &projector, Projection &P, int Ydim, int Xdim, double rot, double tilt, double psi, const MultidimArray< double > *ctf)
int verbose
Verbosity level.
MultidimArray< double > Itheo_CTF
void readParams()
Read params.
#define FIRST_XMIPP_INDEX(size)
void produceSideInfo()
Produce Side information.
void defineParams()
Define parameters.
int read(const FileName &name, DataMode datamode=DATA, size_t select_img=ALL_IMAGES, bool mapData=false, int mode=WRITE_READONLY)
void show()
Show parameters.
void addUsageLine(const char *line, bool verbatim=false)
bool enable_CTFnoise
Enable CTFnoise part.
#define LAST_XMIPP_INDEX(size)
void generateMask(MultidimArray< double > &v)
void addParamsLine(const String &line)
void applyMaskSpace(MultidimArray< double > &v)
std::map< String, CommentList > defaultComments