I have a stack of medical images which have 2.5 mm slice thickness and 1.5 mm slice spacing. So the slices are overlapping. I intend to create a 3D volume from these slices and I am not sure if I am not scaling in the z direction (where the slice spacing makes it confusing to me). Please let me know how to accurately construct 3D volume from 2D slices which are overlapping.
This is what I did so far
I read the CT slices, slice by slice(in a for loop) into a 3D matrix.
for count = 1:totalSlices
fileName = dirData(count).name;
dicomImage = dicomread(fileName);
imageStack(:,:,count) = dicomImage;
end
And I used the ExportVoxelData function from Matlab central to generate an stl file from the image stack above
I do have an stl model but I do not know if it is scaled correctly in the z direction My pixel dimensions are 0.9766 mm in X and Y dimensions. My slice thickness is 2.5 mm My slice spacing is 1.5 mm