Watch this Author's files
Dear Ahmad, the test you had made gives good result, you have just SWAP the X and Y and you will get it
I downloaded the code. I then made a simple test tracing a line of a center slice of a 3D image. The code seems not working properly, unless I miss used it. Your feedback is highly appreciated. The test I mase is as follows:
A= zeros(257, 257, 257); Matrice = bresenham_line_3D(129,129,129,139,257,129,A); imshow(Matrice(:,:,129))
% However, it works with the following inputs:
Matrice = bresenham_line_3D(129,129,129,257,257,129,A); imshow(Matrice(:,:,129))
Thanks, Bon courage, Ahmad
Hey, It determines the voxel value or the index ?
Thank you very much, finally i found it in 3D
Contact us at files@mathworks.com