随便一玩啊
随便一玩啊
关注数: 8
粉丝数: 35
发帖数: 421
关注贴吧数: 7
S4510 写放大10倍 买的时候全新0写入0通电, 用了2年以后。。。。
谁才是破防的小丑呢
开机界面卡住是为什么啊
编译好的VTK7.1.vs2015+qt5版 链接:http://tieba.baidu.com/mo/q/checkurl?url=https%3A%2F%2Fpan.baidu.com%2Fs%2F1dGSQQpb&urlrefer=80a945b85e13f52b164dc14651a92372 密码:825n 看到很多人编译VTK 出现各种错误。这是我编译好的版本,只能在VS2015中使用,支持QT5。 包含release和debug。 编译肯定正确能用,若不能请检查自己的配置环境。
编译好的4视图DEMO http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fdownload.csdn.net%2Fdownload%2Fqq_31967281%2F9865709&urlrefer=7fe0826726fc2c0e0ea5ed91e39539e5 年前做的一个小项目demo 就是根据置顶帖的原理做的。 使用VTK7.0+ITK4.9+QT5.7+VS2010. 执行里面的kelaishi.exe 就可以 按住鼠标中键滑动改变窗宽窗位。 体绘制可以选择不同的效果。
ITK读 VTK显示的代码 m_dirPath =dir; if (m_dirPath == "") { return 0; } typedef itk::ImageSeriesReader< GrayColorImageType > SeriesReaderType; SeriesReaderType::Pointer t_SeriesReader = SeriesReaderType::New(); typedef itk::GDCMImageIO ImageIOType;//读DICOM图片; ImageIOType::Pointer t_ImageIO = ImageIOType::New(); t_SeriesReader->SetImageIO(t_ImageIO); typedef itk::GDCMSeriesFileNames NamesGeneratorType; NamesGeneratorType::Pointer t_NameGenerator = NamesGeneratorType::New(); t_NameGenerator->SetUseSeriesDetails(false); t_NameGenerator->AddSeriesRestriction("0008|0021"); //t_NameGenerator->SetUseSeriesDetails(false); std::string sPathName = std::string((const char*)m_dirPath.toLocal8Bit()); t_NameGenerator->SetDirectory( sPathName);//设置文件目录; typedef std::vector<std::string> SeriesIdContainer; const SeriesIdContainer &t_SeriesUID = t_NameGenerator->GetSeriesUIDs(); string t_str = "", t_Representation = ""; // 该文件夹下无可读的DICOM文件; if (t_SeriesUID.size() == 0) return 0; //迭代器; SeriesIdContainer::const_iterator seriesItr = t_SeriesUID.begin(); SeriesIdContainer::const_iterator seriesEnd = t_SeriesUID.end(); // 这里只读入了第一个序列的图像; //通过迭代器读取所有单张切片; std::string t_SeriesIdentifier; t_SeriesIdentifier = t_SeriesUID.begin()->c_str(); typedef std::vector< std::string > FileNamesContainer; FileNamesContainer t_FileNames; t_FileNames = t_NameGenerator->GetFileNames(t_SeriesIdentifier); m_Names = t_NameGenerator->GetFileNames(t_SeriesIdentifier); t_SeriesReader->SetFileNames(t_FileNames); t_SeriesReader->Update(); //获取DIOCM头文件中信息; itk::MetaDataDictionary t_DataDictionary = t_ImageIO->GetMetaDataDictionary(); //vector<string> vec = t_ImageIO->GetMetaDataDictionary().GetKeys(); t_ITKImage = t_SeriesReader->GetOutput(); k_ImageData->setITKImageData(t_ITKImage); // itkImage转vtkImageData; typedef itk::ImageToVTKImageFilter <GrayColorImageType> ITK2VTKDataFilterType; ITK2VTKDataFilterType::Pointer t_DataTransformFilter = ITK2VTKDataFilterType::New(); t_DataTransformFilter->SetInput(t_ITKImage); t_DataTransformFilter->Update(); // 图像按Y轴反转; vtkImageFlip *t_FlipFilter = vtkImageFlip::New(); t_FlipFilter->SetInputData(t_DataTransformFilter->GetOutput()); t_FlipFilter->SetFilteredAxes(1);//Y轴; t_FlipFilter->Update(); vtkImageData *t_VTKImageData = t_FlipFilter->GetOutput(); // 设置空间分辨率; GrayColorImageType::SpacingType t_Spacing = t_ITKImage->GetSpacing(); t_VTKImageData->SetSpacing(t_Spacing[0], t_Spacing[1], t_Spacing[2]); // 设置图像原点; t_VTKImageData->SetOrigin(0, 0, 0); vtkSmartPointer<vtkImageActor> actor = vtkSmartPointer<vtkImageActor>::New(); actor->GetMapper()->SetInputData(t_VTKImageData); actor->SetDisplayExtent(t_VTKImageData->GetExtent()); actor->SetZSlice(10); vtkSmartPointer<vtkRenderWindow>renderWindow=vtkSmartPointer<vtkRenderWindow>::New(); vtkSmartPointer<vtkRenderWindowInteractor> interactor=vtkSmartPointer<vtkRenderWindowInteractor>::New(); vtkSmartPointer<vtkRenderer>render=vtkSmartPointer<vtkRenderer>::New(); render->SetRenderWindow(renderWindow); render->AddActor(actor); renderWindow->SetInteractor(interactor); renderWindow->render(); interactor->start();
虚线框选择感兴趣区域 要想实现图中那样的虚线框 该使用什么widget呢
怎样在CT序列图像中显示三维种子点呢 对序列图像进行区域增长分割,要选取种子点,使用了vtkseedwidget,但是总是显示不正确,该怎样使用呢。。
关于置顶帖里2X2 单个切片显示的问题。。 我依照置顶帖里的代码,可以显示三正交,但是单个切片无法显示啊。 void klPlaneDisplayWidget::setImagePlaneWidget(vtkImagePlaneWidget* widget) { this->planeWidget=widget; vtkImageMapToColors *colorMap1 = vtkImageMapToColors::New(); colorMap1->PassAlphaToOutputOff(); //use in RGB colorMap1->SetActiveComponent( 0 ); colorMap1->SetOutputFormatToLuminance(); colorMap1->SetInputData((vtkDataSet*)planeWidget->GetResliceOutput()); colorMap1->SetLookupTable( (vtkScalarsToColors *)planeWidget->GetLookupTable() ); imageActor = vtkImageActor::New(); imageActor->PickableOff(); imageActor->SetInputData( colorMap1->GetOutput() ); m_render=vtkRenderer::New(); m_render->AddActor(imageActor); interactor=vtkRenderWindowInteractor::New(); vtkInteractorStyleImage *m_style =vtkInteractorStyleImage::New(); interactor->SetInteractorStyle(m_style); this->GetRenderWindow()->SetInteractor(interactor); this->GetRenderWindow()->AddRenderer(m_render); interactor->SetRenderWindow(this->GetRenderWindow()); interactor->Initialize(); m_render->GetActiveCamera()->ParallelProjectionOn(); m_render->ResetCamera(); interactor->Initialize(); }
VTK 三视图显示 求VTK 三视图显示的方法。。在网上找个例子,显示不了啊,也找到修改的头绪
VTK 圆锥方向怎样设置啊 使用vtkassembly 将圆锥体圆柱体和球体组装到一起 可是圆锥体是沿着X轴方向的 怎样才能改成沿Y轴方向啊
将CT断层图像进行面绘制, 怎样才能将不相连的部分 单独生成一个actor 这样可以进行移动旋转的操作
面绘制处理问题 对CT断层图像进行面绘制得到的结果, 该怎样才能把不相连的骨头生成单独可移动的actor呢?
VTK 设置半径长度问题 sphere->SetRadius() 括号里面的值得单位是毫米么?
怎样选取半透明actor中的actor啊 一个半透明的actor中有许多其他的actor ,该怎样选取它们啊,求大神指教。
找不到vtkOpenGLVolumeTextureMapper3D.h 为什么我编译的VTK里没有这个头文件啊
VTKCUBESOURCE VTKCUBESOURCE 有六个面 怎样让六个面显示不同的颜色呢
添加显示坐标系的问题 想在视口中添加坐标系显示,在没添加之前是这样显示在添加了坐标系显示以后 就变成了这样昨天的视口需要缩小显示才可以,怎样才能改成第一幅图那样的默认形式啊。。添加的代码就是注释掉的那一块 添加的代码
怎样用VTK读取DICOM序列文件,在图像中添加选点。 新手求教 用VTK读取一个DICOM序列文件, 想在鼠标点击图像的一个点的时候 添加一个标记。 vtkPointHandleRepresentation3D* handleRep = vtkPointHandleRepresentation3D::New(); handleRep->SetHandleSize(20); handleRep->GetProperty()->SetColor(1,0,0); handleRep->GetProperty()->SetLineWidth(2); handleRep->GetSelectedProperty()->SetColor(0,1,0); handleRep->GetSelectedProperty()->SetLineWidth(2); this->MRMarkers = vtkSeedRepresentation::New(); this->MRMarkers->SetHandleRepresentation(handleRep); 添加了以后发现 当在一张图像上添加点以后 在这张图片的上一层图片也会显示这个点 怎样才能只在选定的这张图片上显示啊
安装独立显卡 开机在主板界面停留好长时间 以前用3770K 核心显卡 开机自检都秒过 刚安装了GTX760冰龙 开机以后在主板界面停留好长时间 技嘉Z77D3H主板 并且按任何键都无法进入BOSS
吧里有卖250G 三星840的吧商么 RT
三星840 固态硬盘120G X宝 300多 能是真货么
散人两台I7 3700K 求活 网页游戏最好 有意 +278124177
极品17肌肉车那关 好难过啊 就差那一金了 警车太闹心了
[email protected]
求好友 RT
1
下一页