3D matrix pixel length ('slice thickness') modification in Z axis

6 visualizaciones (últimos 30 días)
Dae Park
Dae Park el 11 de En. de 2017
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:
  1. Modify matrix dimension in Z axis using interp3
  2. 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

Respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by