// fdk-gpu.h #ifndef FDK_GPU_H #define FDK_GPU_H #include #include "defs-env.h" #define tex_1d extern sof fdk_ts_back1_gpu( float *image, // [nz nx ny] <- trick! cint nx, cint ny, cint nz, cfloat dx, // voxel size cfloat dy, // can be negative to cause flip cfloat dz, cfloat offset_x, // image volume center offset in pixels (usually 0) cfloat offset_y, cfloat offset_z, cbyte *mask2, // [nx ny] 2D support mask: 0, 1, ..., nthread cbyte mask_id, // 1 ... nthread cfloat dso, // distance from source to isocenter cfloat dsd, // distance from source to detector cfloat dfs, // distance from focal point to source (0 or inf) cint ns, // projection view dimensions cint nt, cfloat ds, // horizontal ray spacing (view sample spacing) cfloat dt, // vertical ray spacing (view sample spacing) cfloat offset_s, // channel offset [pixels] cfloat offset_t, // vertical offset on detector [pixels] cfloat *proj, // [nt ns] <- trick! projection view at angle beta cfloat beta); // source angle [radians] texture tex_img; texture tex_proj; texture tex_mask2; texture tex_proj2d; #endif