What is the difference between dicomrt2matlab's contours.points and contours.VoxPoints?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre DICOM Format en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!