What is the difference between dicomrt2matlab's contours.points and contours.VoxPoints?

2 次查看(过去 30 天)
What is the difference between dicomrt2matlab 's contours.Points and contours.VoxPoints?
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 个)

类别

Help CenterFile Exchange 中查找有关 DICOM Format 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by