Tomas Farago пре 9 година
родитељ
комит
68f06fe138
2 измењених фајлова са 24 додато и 24 уклоњено
  1. 19 19
      src/kernels/ankabackproject.cl
  2. 5 5
      src/kernels/ankapadding.cl

+ 19 - 19
src/kernels/ankabackproject.cl

@@ -17,14 +17,14 @@
  * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-__kernel void backproject (global float *volume,
-                           __read_only image2d_t projection,
-                           const sampler_t sampler,
-                           const float2 x_region,
-                           const float2 y_region,
-                           const float2 z_region,
-                           const float8 tmatrix,
-                           const uint cumulate)
+kernel void backproject (global float *volume,
+                         read_only image2d_t projection,
+                         const sampler_t sampler,
+                         const float2 x_region,
+                         const float2 y_region,
+                         const float2 z_region,
+                         const float8 tmatrix,
+                         const uint cumulate)
 {
     int3 id = (int3) (get_global_id (0), get_global_id (1), get_global_id (2));
     float2 pixel;
@@ -48,17 +48,17 @@ __kernel void backproject (global float *volume,
 }
 
 
-__kernel void backproject_from_3d (global float *volume,
-                                   __read_only image3d_t projections,
-                                   const sampler_t sampler,
-                                   const float2 x_region,
-                                   const float2 y_region,
-                                   const float2 z_region,
-                                   constant float *sines,
-                                   constant float *cosines,
-                                   const float2 center,
-                                   const float sin_lamino,
-                                   const float cos_lamino)
+kernel void backproject_from_3d (global float *volume,
+                                 read_only image3d_t projections,
+                                 const sampler_t sampler,
+                                 const float2 x_region,
+                                 const float2 y_region,
+                                 const float2 z_region,
+                                 constant float *sines,
+                                 constant float *cosines,
+                                 const float2 center,
+                                 const float sin_lamino,
+                                 const float cos_lamino)
 {
     int3 id = (int3) (get_global_id (0), get_global_id (1), get_global_id (2));
     int i;

+ 5 - 5
src/kernels/ankapadding.cl

@@ -17,11 +17,11 @@
  * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-__kernel void pad (image2d_t in_image,
-                   sampler_t sampler,
-                   global float *result,
-                   const uint2 input_shape,
-                   const int2 offset)
+kernel void pad (read_only image2d_t in_image,
+                 sampler_t sampler,
+                 global float *result,
+                 const uint2 input_shape,
+                 const int2 offset)
 {
     int2 pixel = (int2) (get_global_id (0), get_global_id (1));
     float2 norm_pixel = (float2) (((float) pixel.x - offset.x) / input_shape.x,