emdata_transform.h

Go to the documentation of this file.
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__transform_h__
00041 #define emdata__transform_h__
00042 
00043 public:
00044 
00051 EMData *do_fft() const;
00052 
00053 
00054 #ifdef EMAN2_USING_CUDA
00055 
00060 EMData *do_fft_cuda() const;
00061 
00067 EMData *do_ift_cuda(bool preserve_input = true) const;
00068 #endif //EMAN2_USING_CUDA
00069 
00070 
00071 
00075 EMData* do_fft_inplace();
00076 
00077 
00087 EMData *do_ift();
00088 
00089 
00090 /* Do IFT inplace. And return the IFT image.
00091  * @return The IFT image.
00092  */
00093 EMData* do_ift_inplace();
00094 
00095 
00114 std::string render_amp8(int x, int y, int xsize, int ysize,
00115                                  int bpl, float scale, int min_gray, int max_gray,
00116                                  float min_render, float max_render,float gamma,int flags);
00117 
00136 std::string render_ap24(int x, int y, int xsize, int ysize,
00137                                  int bpl, float scale, int min_gray, int max_gray,
00138                                  float min_render, float max_render,float gamma,int flags);
00139 
00155 void render_amp24(int x, int y, int xsize, int ysize,
00156                                   int bpl, float scale, int min_gray, int max_gray,
00157                                   float min_render, float max_render,
00158                                   void *ref, void cmap(void *, int coord, unsigned char *tri));
00159 
00160 
00164 void ri2ap();
00165 
00169 void ap2ri();
00170 
00175 void ri2inten();
00176 
00184 EMData*   bispecRotTransInvN(int N, int NK);
00185 
00186 
00187 
00193 EMData*  bispecRotTransInvDirect(int type=0);
00194 
00195 
00202 void insert_clip(const EMData * const block, const IntPoint & origin);
00203 
00204 
00218 void insert_scaled_sum(EMData *block, const FloatPoint & center,
00219                                            float scale=1.0, float mult_factor=1.0);
00220 
00221 
00222 
00223 #endif  //emdata__transform_h__

Generated on Mon Jul 19 12:40:10 2010 for EMAN2 by  doxygen 1.4.7