Calculates the vectors of direction for primary rays.
IppStatus ipprCastEye_32f(IppPoint3D_32f imPlaneOrg, IppPoint3D_32f dW, IppPoint3D_32f dH, int wB,int hB, IppiSize cBlock, Ipp32f* pDirection[3], IppiSize blockSize);
imPlaneOrg |
Coordinate of the projection of the origin point to the projection plane. |
dW |
Step (vector) along width of the projection plane. |
dH |
Step (vector) along height of the projection plane. |
wB |
Number of block along the width of the projection plane. |
hB |
Number of block along the height of the projection plane. |
cBlock |
Total number of rays in the block. |
pDirection |
Array of pointers to separate coordinate (x, y, z) planes of the destination vector. |
blockSize |
Total number of the rays in the current block. |
The function ipprCastEye is declared in the ippr.h file. This function calculates the vector of direction for the ray as the displacement relative to the point imPlaneOrg in accordance with the formula:
pDirection[i][j] = imPlaneOrg[i][j] + (wB + j)*dW + (hB + i)*dH,
where
i = 0 .. (blocSize.height - 1),
j = 0 .. ( blocSize.width - 1).
The code example demonstrates how to use this function.
ippStsNoErr |
Indicates no error. Any other value indicates an error or a warning. |
ippStsNullPtrErr |
Indicates an error condition if pDirection pointer is NULL. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.