00001 00005 /* 00006 * Author: Steven Ludtke, 04/10/2003 (sludtke@bcm.edu) 00007 * Copyright (c) 2000-2006 Baylor College of Medicine 00008 * 00009 * This software is issued under a joint BSD/GNU license. You may use the 00010 * source code in this file under either license. However, note that the 00011 * complete EMAN2 and SPARX software packages have some GPL dependencies, 00012 * so you are responsible for compliance with the licenses of these packages 00013 * if you opt to use BSD licensing. The warranty disclaimer below holds 00014 * in either instance. 00015 * 00016 * This complete copyright notice must be included in any revised version of the 00017 * source code. Additional authorship citations may be added, but existing 00018 * author citations must be preserved. 00019 * 00020 * This program is free software; you can redistribute it and/or modify 00021 * it under the terms of the GNU General Public License as published by 00022 * the Free Software Foundation; either version 2 of the License, or 00023 * (at your option) any later version. 00024 * 00025 * This program is distributed in the hope that it will be useful, 00026 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00027 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00028 * GNU General Public License for more details. 00029 * 00030 * You should have received a copy of the GNU General Public License 00031 * along with this program; if not, write to the Free Software 00032 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00033 * 00034 * */ 00035 00040 #ifndef emdata__modular_h__ 00041 #define emdata__modular_h__ 00042 00043 public: 00049 void process_inplace(const string & processorname, const Dict & params = Dict()); 00050 00055 void process_inplace(Processor * p); 00056 00064 EMData * process(const string & processorname, const Dict & params = Dict()) const; 00065 00070 EMData * process(Processor * p) const; 00071 00079 float cmp(const string & cmpname, EMData * with, const Dict & params = Dict()); 00080 00091 EMData *align(const string & aligner_name, EMData * to_img, 00092 const Dict & params = Dict(), const string & cmp_name = "", 00093 const Dict& cmp_params = Dict()); 00094 00106 vector<Dict> xform_align_nbest(const string & aligner_name, EMData * to_img, 00107 const Dict & params = Dict(), const unsigned int nsoln = 1, const string & cmp_name = "dot", 00108 const Dict& cmp_params = Dict()); 00109 00116 EMData *project(const string & projector_name, const Dict & params = Dict()); 00117 00124 EMData *project(const string & projector_name, const Transform & t3d); 00125 00133 EMData *backproject(const string & projector_name, const Dict & params = Dict()); 00134 00135 //#ifdef EMAN2_USING_CUDA 00136 //vector<EMData*> cuda_project(const vector<Transform> transforms); 00137 //#endif // EMAN2_USING_CUDA 00138 00139 #endif //emdata__modular_h__