center_template.in 575 B

12345678910111213
  1. pixel.x = mad(voxel.x, cosines{1}, mad(voxel.y, sines{1}, x_center_current));
  2. pixel.y = mad(tmp_x, sines{1}, mad(tmp_y, cosines{1}, tmp));
  3. rotate ();
  4. result {2}= read_imagef (projection_{0}, sampler, pixel).x;
  5. %nl
  6. voxel.x = mad((float) idx, x_region.y, x_region.x);
  7. voxel.y = mad((float) idy, y_region.y, y_region.x);
  8. float x_center_current = mad((float) idz, x_center.y, x_center.x);
  9. tmp = mad(z_region.x, sin_lamino, y_center);
  10. tmp_x = voxel.x * cos_lamino;
  11. tmp_y = -voxel.y * cos_lamino;
  12. {}