03 2011 档案
VTK向ITK转换后输出序列dicom图片的问题
摘要:昨晚发现用geomagic抽出的面模型有个很大的问题——刚好反转过来的!!也就是说。。。肝跑到左边去了。。。胃在右边。。。。这让我百思不得其解还好google给我搜对关键词了,原来是vtk和itk的坐标系不一样的问题,下面是引用VTK uses the computer graphics standard of having the origin at the upper left of a screenITK uses the mathematical standard of having the origin on the lower left.Note however that all
阅读全文
按值传递和按引用传递
摘要:今晚遇到个很奇怪的问题 crop之后的经过extractVOI的volume竟然没变化 后来才发现是按值传递和按引用传递的问题 指针也是会这样 因为这里指针的值会发生变化 如果是按值传递 void CVTK::AddextractVOI(vtkImageData *input,vtkImageData * output,int point1_x,int point1_y,int point1_z,int point2_x,int point2_y,int point2_z)指针的output没有变化后来改为如下,终于行了void CVTK::AddextractVOI(vtkImageData
阅读全文
修正vtkboxwidget2不能禁止旋转的问题
摘要:使用了新修改类vtkboxwidget2 网址如下:I have a patch up on Gerrit that should address this issue:http://review.source.kitware.com/#change,1206修正了原版vtkboxwidget2 不能禁止旋转地问题调试这个类得过程中遇到了 link2001 还有warning C4273的问题 最终问题在于class VTK_WIDGETS_EXPORT vtkBoxWidget2_new : public vtkAbstractWidget的宏定义VTK_WIDGETS_EXPORT上 ht
阅读全文