问题描述
我正在开发一个项目,我的目标是将DICOM图像加载到QT GUI中,从标题中读取DICOM信息并对图像进行分段处理。由于QT库不支持DICOM图像,我们考虑与ITK集成,我们用它来分割和处理图像,VTK可以在QT小部件上显示图像。
使用工具:
QT:5.2.1
CMAKE:2.8.12.2
ITK:4.5.1
VTK:6.1.0
步骤:
我们在windows7上安装了QT和cmake。
Build ITK和VTK:
为了构建ITK和VTK,我们遵循相同的程序。我们使用cmakelists.txt文件在QT中打开了ITK项目,在我们指定的构建参数-DCMAKE_BUILD_TYPE = DEBUG中,使用nmake生成器,我们构建了ITK和VTK。
接下来我们在QT中创建了一个cmake项目,在cmakelists文件中我们导入了ITK和VTK包。实际问题来了。当我们尝试构建这个项目时,我们得到像_ITERATOR_DEBUG_LEVEL这样的异常值'2'与值'0'不匹配等等...
任何人都可以帮助整合QT,ITK和VTK。此外,我找不到任何使用cmake集成这三个的明确文档。如果有人能为我们提供一些有用的链接,将会很有帮助。谢谢
I am working on a project and my goal is to load DICOM images into QT GUI, read DICOM information from header and segment the image to process it. Since QT libraries doesn't support DICOM images we thought to integrate with ITK which we use for segmenting and process the image, VTK to visualize the image on QT widget.
TOOLS USED:
QT: 5.2.1
CMAKE : 2.8.12.2
ITK : 4.5.1
VTK : 6.1.0
Steps:
We installed QT and cmake on windows7.
Build ITK and VTK:
For building ITK and VTK we followed same procedure. We opened ITK project in QT using cmakelists.txt file and in the build arguments we specified -DCMAKE_BUILD_TYPE=DEBUG and using nmake generator we have built both ITK and VTK.
Next we created a cmake project in QT and in cmakelists file we imported ITK and VTK packages. The actual problem comes here. When we try to build this project we get exceptions like _ITERATOR_DEBUG_LEVEL value '2' doesn't match value '0' etc...
Can anyone please help with the integration of QT, ITK and VTK. Also I could not find any clear documentation for the integration of these three using cmake. It would be helpful if anyone can provide us some helpful links for these. Thanks
推荐答案
这篇关于如何将QT 5.2.1与ITK和VTK集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!