EMAN2
cuda_processor.h
Go to the documentation of this file.
1
2#ifndef cuda_processor_h__
3#define cuda_processor_h__ 1
4
5#include "cuda_util.h"
6
7void emdata_processor_mult(float* data, const float& mult, const int nx, const int ny, const int nz);
8
9void emdata_processor_add( EMDataForCuda* cuda_data, const float& sub);
10
11void emdata_processor_to_value( EMDataForCuda* cuda_data, const float& value);
12
13void emdata_processor_correlation_texture( const EMDataForCuda* left,const int center);
14
15void emdata_processor_correlation( const EMDataForCuda* left, const EMDataForCuda* right,const int center);
16
17void emdata_unwrap(float* data, int r1, int r2, int xs, int num_pi, int dx, int dy, int weight_radial, int nx, int ny);
18
19float* emdata_transform_cuda(const float* const m, const int nx, const int ny, const int nz);
20
21void calc_ccf_cuda(float* afft, const float* bfft, const int nx, const int ny, const int nz);
22
23void calc_conv_cuda(float* afft, const float* bfft, const int nx, const int ny, const int nz);
24
25CudaPeakInfo* calc_max_location_wrap_cuda(const float* in, const int nx, const int ny, const int nz, const int maxdx, const int maxdy, const int maxdz);
26
27CudaPeakInfoFloat* calc_max_location_wrap_intp_cuda(const float* in, const int nx, const int ny, const int nz, const int maxdx, const int maxdy, const int maxdz);
28
29void emdata_phaseorigin_to_center(float* data, const int nx, const int ny, const int nz);
30
31void emdata_phaseorigin_to_corner(float* data, const int nx, const int ny, const int nz) ;
32
33void emdata_ri2ap( EMDataForCuda* cuda_data);
34
35void emdata_ap2ri( EMDataForCuda* cuda_data);
36
38
39void binarize_fourier_amp_processor(EMDataForCuda* cuda_data,const float& threshold);
40
41void mult_complex_efficient_cuda(float* data, const float* src_data, const int nx, const int ny, const int nz, const int radius);
42
43void mcf_cuda(const float* data1, float* data2, const int nx, const int ny, const int nz);
44
45void subtract_cuda(float* data, float f, const int nx, const int ny, const int nz);
46
47float* emdata_column_sum(const float* data, const int nx, const int ny);
48
54void emdata_rotate_180(float* data, const int nx, const int ny);
55#endif // cuda_processor_h__
void emdata_ri2inten(EMDataForCuda *cuda_data)
void calc_ccf_cuda(float *afft, const float *bfft, const int nx, const int ny, const int nz)
void mcf_cuda(const float *data1, float *data2, const int nx, const int ny, const int nz)
void emdata_unwrap(float *data, int r1, int r2, int xs, int num_pi, int dx, int dy, int weight_radial, int nx, int ny)
void emdata_ri2ap(EMDataForCuda *cuda_data)
void emdata_processor_add(EMDataForCuda *cuda_data, const float &sub)
void emdata_processor_mult(float *data, const float &mult, const int nx, const int ny, const int nz)
CudaPeakInfo * calc_max_location_wrap_cuda(const float *in, const int nx, const int ny, const int nz, const int maxdx, const int maxdy, const int maxdz)
CudaPeakInfoFloat * calc_max_location_wrap_intp_cuda(const float *in, const int nx, const int ny, const int nz, const int maxdx, const int maxdy, const int maxdz)
void emdata_phaseorigin_to_corner(float *data, const int nx, const int ny, const int nz)
void emdata_processor_correlation_texture(const EMDataForCuda *left, const int center)
void emdata_phaseorigin_to_center(float *data, const int nx, const int ny, const int nz)
void emdata_processor_correlation(const EMDataForCuda *left, const EMDataForCuda *right, const int center)
void emdata_ap2ri(EMDataForCuda *cuda_data)
void subtract_cuda(float *data, float f, const int nx, const int ny, const int nz)
float * emdata_column_sum(const float *data, const int nx, const int ny)
void mult_complex_efficient_cuda(float *data, const float *src_data, const int nx, const int ny, const int nz, const int radius)
void binarize_fourier_amp_processor(EMDataForCuda *cuda_data, const float &threshold)
void calc_conv_cuda(float *afft, const float *bfft, const int nx, const int ny, const int nz)
void emdata_processor_to_value(EMDataForCuda *cuda_data, const float &value)
float * emdata_transform_cuda(const float *const m, const int nx, const int ny, const int nz)
void emdata_rotate_180(float *data, const int nx, const int ny)
Rotates by 180 degrees using memory swapping, uses shared memory for efficiency Works on 2D images - ...
void mult(int n)
multiply an integer number to each pixel value of the image.
Definition: emdata_core.h:97
void sub(float f)
subtract a float number to each pixel value of the image.
A struct for passing EMData objects to and from things like processors.
Definition: cuda_util.h:18