SCM Repository
[diderot] Diff of /trunk/test/MIP/mip.cl
Diff of /trunk/test/MIP/mip.cl
Parent Directory
|
Revision Log
|
Patch
60 |
for (int i = -1; i <= 2; i++) { |
for (int i = -1; i <= 2; i++) { |
61 |
for (int j = -1; j <= 2; j++) { |
for (int j = -1; j <= 2; j++) { |
62 |
// compute z axis using vectors |
// compute z axis using vectors |
63 |
|
int index = (n1.x+i) * length * width + (n1.y+j) * width + n1.z-1; |
64 |
v = (float4)( |
v = (float4)( |
65 |
img[(n1.x+i) * length * width + (n1.y+j) * width + n1.z-1], |
img[index], |
66 |
img[(n1.x+i) * length * width + (n1.y+j) * width + n1.z], |
img[index+1], |
67 |
img[(n1.x+i) * length * width + (n1.y+j) * width + n1.z+1], |
img[index+2], |
68 |
img[(n1.x+i) * length * width + (n1.y+j) * width + n1.z+2]); |
img[index+3]); |
69 |
ty[j+1] = dot(v, d + t_k * (c + t_k * (b + t_k * a))); |
ty[j+1] = dot(v, d + t_k * (c + t_k * (b + t_k * a))); |
70 |
} |
} |
71 |
tx[i+1] = dot((float4)(ty[0], ty[1], ty[2], ty[3]), d + t_j * (c + t_j * (b + t_j * a))); |
tx[i+1] = dot((float4)(ty[0], ty[1], ty[2], ty[3]), d + t_j * (c + t_j * (b + t_j * a))); |
|
Legend:
Removed from v.219 |
|
changed lines |
|
Added in v.220 |
|
|