简体   繁体   English

用于 C++ 的 VTK 和 ITK

[英]VTK and ITK for C++

I'm very new to using libraries for C++ and I have some doubts.我对使用 C++ 库很陌生,我有一些疑问。 I will need to work with medical images, MRI in particular, (DICOM format).我需要处理医学图像,尤其是 MRI(DICOM 格式)。 I want to process those images - get the particular pixel values.我想处理这些图像 - 获取特定的像素值。 However, as I read, I need some additional libraries to be able to work with DICOM file format in C++.但是,正如我所读到的,我需要一些额外的库才能在 C++ 中使用 DICOM 文件格式。 I found VTK and ITK libraries .我找到了 VTK 和 ITK However, I'm not sure if it is libraries for c++... Does anyone know?但是,我不确定它是否是 C++ 的库……有人知道吗? DO I only need to download it, install and use it in my C++ code or is it a separate tool with GUI?我只需要在我的 C++ 代码中下载、安装和使用它,还是它是一个带有 GUI 的单独工具? Will I be able to read DICOM file formats and access its pixel values and manipulate it with C++?我是否能够读取 DICOM 文件格式并访问其像素值并使用 C++ 对其进行操作?

Thanks谢谢

VTK and ITK are both open source C++ libraries. VTK 和 ITK 都是开源的 C++ 库。

I think the confusion might come from the VTK file source formats which can be vizualize by a GUI interface Paraview .我认为混淆可能来自VTK文件源格式,可以通过 GUI 界面Paraview 进行可视化

Kitwares propose several tools in medical imaging, data vizualization, which can be used "together" hence the confusion. Kitwares 在医学成像、数据可视化方面提出了几种工具,它们可以“一起”使用,因此会引起混淆。 But you can consider VTK and ITK as C++ libraries.但是您可以将 VTK 和 ITK 视为 C++ 库。

ITK and VTK are libraries written in C++, so you can download the code, compile the libraries and link them with your C++ code. ITK 和 VTK 是用 C++ 编写的库,因此您可以下载代码、编译库并将它们与您的 C++ 代码链接。 ITK supports reading and writing DICOM files, along with a host of there medical image formats. ITK 支持读取和写入 DICOM 文件,以及许多医学图像格式。 You will be able to access pixel values in your C++ code using ITK.您将能够使用 ITK 访问 C++ 代码中的像素值。

ITK and VTK are written in C ++. ITK 和 VTK 是用 C++ 编写的。 But if you want somenter read DICOM files, recomento use only VTK.但是如果你想稍微读取 DICOM 文件,建议只使用 VTK。 VTK is responsible for data representation as part ITK will treat filter handling. VTK 负责数据表示,因为 ITK 将处理过滤器处理。

vtkDICOMImageReader is the recommended class for reading DICOM files (.dcm or .dir) vtkDICOMImageReader 是用于读取 DICOM 文件(.dcm 或 .dir)的推荐类

If you choose to use VTK and ITK, will have to activate the function itkvtkglue如果选择使用 VTK 和 ITK,则必须激活 itkvtkgglue 功能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM