- #1
sequentialran
- 1
- 0
I am trying to project a voxelized cube.
I have created a cube of size 255x255x255 with intensity values one. I have derived the perspective transformation matrix and constructed the projection-matrix. I have implemented the projection of a cube using voxel-driven projection algorithm in Matlab.
The code ran without any errors. However, the projected cube is not at the centre. When I change the angle, or the distance; the cube sometimes will completely move off the screen, or on the screen, or partially on the screen. I believe the source and the detector are not aligned.
I am in confusion. I am not able to find out what's happening here. I have attached the MATLAB code. Can somebody please suggest me what's happening here.
Thank you.
I have created a cube of size 255x255x255 with intensity values one. I have derived the perspective transformation matrix and constructed the projection-matrix. I have implemented the projection of a cube using voxel-driven projection algorithm in Matlab.
The code ran without any errors. However, the projected cube is not at the centre. When I change the angle, or the distance; the cube sometimes will completely move off the screen, or on the screen, or partially on the screen. I believe the source and the detector are not aligned.
I am in confusion. I am not able to find out what's happening here. I have attached the MATLAB code. Can somebody please suggest me what's happening here.
Thank you.