What is the difference between dicomrt2matlab's contours.points and contours.VoxPoints?
1 次查看(过去 30 天)
显示 更早的评论
One set appears flipped over the z-axis with different z-values; compare:
scatter3(contours(9).Points(:,1),contours(9).Points(:,2),contours(9).Points(:,3))
scatter3(contours(9).VoxPoints(:,1),contours(9).VoxPoints(:,2),contours(9).VoxPoints(:,3))
I am currently working to answer this question. readRTstructures contains the answer, e.g.:
contours(i).Points = vertcat(segments{:});
%%Save contour points in voxel coordinates
contours(i).VoxPoints = xfm \ [contours(i).Points ones(size(contours(i).Points,1), 1)]';
contours(i).VoxPoints = contours(i).VoxPoints(1:3,:)';
I suppose it involves the DICOM orientation; this webpage appears to be their source for xfm. getAffineXfm writes:
% Based on http://nipy.sourceforge.net/nibabel/dicom/dicom_orientation.html
It appears to me Points stores a representation of the contour surface for MATLAB, whereas VoxPoints is the equivalent for DICOM, according to nipy.org.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!