EMAN2
emdata_transform.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__transform_h__
37#define emdata__transform_h__
38
39public:
40
46EMData *do_fft() const;
47
48
49#ifdef EMAN2_USING_CUDA
56EMData *do_fft_cuda(); // I am not using const b/c this function does modify cuda specific EMData members...
57
64void do_fft_inplace_cuda();
65
72EMData *do_ift_cuda();
73
80void do_ift_inplace_cuda();
81#endif //EMAN2_USING_CUDA
82
83
84
88void do_fft_inplace();
89
90
99EMData *do_ift();
100
101
102/* Do IFT inplace. And return the IFT image.
103 * @return The IFT image.
104 */
105void do_ift_inplace();
106
107
126std::string render_amp8(int x, int y, int xsize, int ysize,
127 int bpl, float scale, int min_gray, int max_gray,
128 float min_render, float max_render,float gamma,int flags);
129
148EMBytes render_ap24(int x, int y, int xsize, int ysize,
149 int bpl, float scale, int min_gray, int max_gray,
150 float min_render, float max_render,float gamma,int flags);
151
167void render_amp24(int x, int y, int xsize, int ysize,
168 int bpl, float scale, int min_gray, int max_gray,
169 float min_render, float max_render,
170 void *ref, void cmap(void *, int coord, unsigned char *tri));
171
172
175void ri2ap();
176
179void ap2ri();
180
186void ri2inten();
187
195EMData* bispecRotTransInvN(int N, int NK);
196
197
198
204EMData* bispecRotTransInvDirect(int type=0);
205
206
213void insert_clip(const EMData * const block, const IntPoint & origin);
214
215
229void insert_scaled_sum(EMData *block, const FloatPoint & center,
230 float scale=1.0, float mult_factor=1.0);
231
232
233
234#endif //emdata__transform_h__
void ri2inten()
convert the complex image from real/imaginary to Intensity/0.
std::string render_amp8(int x, int y, int xsize, int ysize, int bpl, float scale, int min_gray, int max_gray, float min_render, float max_render, float gamma, int flags)
Render the image into an 8-bit image.
void do_fft_inplace()
Do FFT inplace.
EMData * bispecRotTransInvDirect(int type=0)
This computes the rotational and translational bispectral invariants of an image.
void do_ift_inplace()
EMBytes render_ap24(int x, int y, int xsize, int ysize, int bpl, float scale, int min_gray, int max_gray, float min_render, float max_render, float gamma, int flags)
Render the image into an 8-bit image.
void render_amp24(int x, int y, int xsize, int ysize, int bpl, float scale, int min_gray, int max_gray, float min_render, float max_render, void *ref, void cmap(void *, int coord, unsigned char *tri))
Render the image into a 24-bit image.
EMData * do_ift()
return the inverse fourier transform (IFT) image of the current image.
void ap2ri()
convert the complex image from amplitude/phase to real/imaginary
EMData * bispecRotTransInvN(int N, int NK)
This computes the rotational and translational bispectral invariants of an image.
void insert_scaled_sum(EMData *block, const FloatPoint &center, float scale=1.0, float mult_factor=1.0)
Add a scaled image into another image at a specified location.
EMData * do_fft() const
This file is a part of "emdata.h", to use functions in this file, you should "#include "emdata....
void ri2ap()
convert the complex image from real/imaginary to amplitude/phase
void insert_clip(const EMData *const block, const IntPoint &origin)
Insert a clip into this image.
#define y(i, j)
Definition: projector.cpp:1516
#define x(i)
Definition: projector.cpp:1517