|
@@ -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;
|