It is first visualized in image coordinates which, since voxel size is not taken in to account, appears stretcged. In this example a 2D image with an anisotropic voxel (pixel) size is used. If a single output is requested the output will also consist of such an array whereby columns are the X, Y, and Z coordinates Examples Note that the columns relate to X while rows relate to Y.Ī single coordinate array may also be specified whereby the columns define the I, J, and K coordinates. This function maps the row, column, slice coordinates I,J,K to "real-world" Cartesian coordinates X,Y,Z based on: X=(J-0.5).*v(2) Y=(I-0.5).*v(1) Z=(K-0.5).*v(3) v is a vector of length 3 where v(1), v(2) and v(3) correspond to the voxel dimensions in the x,y and z direction respectively. I,J,K can be scalars, vectors or matrices. This function converts the image coordinates I,J,K to the cartesian coordinates X,Y,Z using the voxel dimension v. Example: 3D image coordinate handling and visualization.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |