Slicer学习笔记(三十八)slicer中vtkImageData
1、vtkImageData
在vtk中vtkImageData 可以保存origin和spacing信息。
但是在slicer中origin和spacing信息保存在volumeNode中,vtkImageData 可以保存origin和spacing信息分别保存0,0,0 和1,1,1否则操作可能得到错误的结果。
\slicersources-src\Libs\MRML\Core\vtkMRMLVolumeNode.h
/// Get the IJKToRAS Matrix that includes the spacing and origin
/// information (assumes the image data is Origin 0 0 0 and Spacing 1 1 1)
/// RASToIJK is the inverse of this