3D matrix pixel length ('slice thickness') modification in Z axis
6 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I have a non-dicom 3D matrix [1536x1536x102, logical] extracted from a CT dicom file. I am using iso2mesh function volume2mesh to render tetrahedral mesh out of the matrix.
After running the matrix through v2m, I get a mesh of the structure but it is way compressed in the Z axis.
My assumption is that this is because we've lost the CT slice thickness information (2.5mm) when extracting the matrix, and Matlab thinks that the distance between each Z pixels is the same as X and Y axes.
What would be the best way to modify the matrix so that each pixel in the Z axis would have a value of 2.5mm?
I can think of 2 ways to go around this issue but not sure how to actually program:
- Modify matrix dimension in Z axis using interp3
- Modify pixel size in Z axis
As for reshaping the matrix, I've tried this but this is based on an assumption that regular pixel length is 1mm, which is probably not the case. Also this freezes my computer.
[X,Y,Z]=meshgrid(1:size(contour,1),1:size(contour,2),1:size(contour,3));
Xq = X;
Yq = Y;
Zq = Z*2.5;
contour2 = interp3(X,Y,Z,contour,Xq,Yq,Zq);
Thank you in advance, -DP
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!