EMAN2
emdata_modular.h
Go to the documentation of this file.
1/*
2 * Author: Steven Ludtke, 04/10/2003 (sludtke@bcm.edu)
3 * Copyright (c) 2000-2006 Baylor College of Medicine
4 *
5 * This software is issued under a joint BSD/GNU license. You may use the
6 * source code in this file under either license. However, note that the
7 * complete EMAN2 and SPARX software packages have some GPL dependencies,
8 * so you are responsible for compliance with the licenses of these packages
9 * if you opt to use BSD licensing. The warranty disclaimer below holds
10 * in either instance.
11 *
12 * This complete copyright notice must be included in any revised version of the
13 * source code. Additional authorship citations may be added, but existing
14 * author citations must be preserved.
15 *
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 2 of the License, or
19 * (at your option) any later version.
20 *
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 *
30 * */
31
36#ifndef emdata__modular_h__
37#define emdata__modular_h__
38
39public:
45void process_inplace(const string & processorname, const Dict & params = Dict());
46
51void process_inplace(Processor * p);
52
60EMData * process(const string & processorname, const Dict & params = Dict()) const;
61
66EMData * process(Processor * p) const;
67
75float cmp(const string & cmpname, EMData * with, const Dict & params = Dict());
76
87EMData *align(const string & aligner_name, EMData * to_img,
88 const Dict & params = Dict(), const string & cmp_name = "",
89 const Dict& cmp_params = Dict());
90
102vector<Dict> xform_align_nbest(const string & aligner_name, EMData * to_img,
103 const Dict & params = Dict(), const unsigned int nsoln = 1, const string & cmp_name = "dot",
104 const Dict& cmp_params = Dict());
105
112EMData *project(const string & projector_name, const Dict & params = Dict());
113
120EMData *project(const string & projector_name, const Transform & t3d);
121
129EMData *backproject(const string & projector_name, const Dict & params = Dict());
130
131//#ifdef EMAN2_USING_CUDA
132//vector<EMData*> cuda_project(const vector<Transform> transforms);
133//#endif // EMAN2_USING_CUDA
134
135#endif //emdata__modular_h__
vector< Dict > xform_align_nbest(const string &aligner_name, EMData *to_img, const Dict &params=Dict(), const unsigned int nsoln=1, const string &cmp_name="dot", const Dict &cmp_params=Dict())
Align this image with another image, return the parameters of the "n best" solutions See Aligner::xfo...
EMData * backproject(const string &projector_name, const Dict &params=Dict())
Calculate the backprojection of this image (stack) and return the result.
float cmp(const string &cmpname, EMData *with, const Dict &params=Dict())
Compare this image with another image.
EMData * process(const string &processorname, const Dict &params=Dict()) const
Apply a processor with its parameters on a copy of this image, return result as a a new image.
void process_inplace(const string &processorname, const Dict &params=Dict())
This file is a part of "emdata.h", to use functions in this file, you should "#include "emdata....
EMData * project(const string &projector_name, const Dict &params=Dict())
Calculate the projection of this image and return the result.
EMData * align(const string &aligner_name, EMData *to_img, const Dict &params=Dict(), const string &cmp_name="", const Dict &cmp_params=Dict())
Align this image with another image and return the result image.