Blame view

cudafunc.cu 637 Bytes
40d11588   Tianshu Cheng   2D inseparable co...
1
  #include <stim/cuda/arraymath.cuh>
b71cc8bb   Tianshu Cheng   mPb using 3 channels
2
  
40d11588   Tianshu Cheng   2D inseparable co...
3
  /*void blur(float* image, float sigma, unsigned int x, unsigned int y){
b71cc8bb   Tianshu Cheng   mPb using 3 channels
4
5
  
  	stim::cuda::cpu_gaussian_blur_2d<float>(image, sigma, x, y);
40d11588   Tianshu Cheng   2D inseparable co...
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  }*/
  
  void array_multiply(float* lhs, float rhs, unsigned int N){
  
  	stim::cuda::cpu_multiply(lhs, rhs, N);
  }
  
  void array_add(float* ptr1, float* ptr2, float* sum, unsigned int N){
  
  	stim::cuda::cpu_add(ptr1, ptr2, sum, N);
  
  }
  
  void conv2(float* img, float* mask, float* cpu_copy, unsigned int w, unsigned int h, unsigned int M){
  
  	stim::cuda::cpu_conv2(img, mask, cpu_copy, w, h, M);
  
  }
  
  void array_abs(float* img, unsigned int N){
  
  	stim::cuda::cpu_abs(img, N);
  
  }