IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> C++知识库 -> 【环境配置】win10+Cmake3.16.0+ITK4.13.3+VTK -> 正文阅读

[C++知识库]【环境配置】win10+Cmake3.16.0+ITK4.13.3+VTK

亲测ITK和VTK的配置

参考:
https://blog.csdn.net/qq_32809093/article/details/109196766

cmake的下载链接:
https://cmake.org/download/
https://github.com/Kitware/CMake/releases
ITK的下载链接:
http://www.itk.org/ITK/resources/software.html
VTK的下载链接:
https://vtk.org/download/

配置过程中出现的问题:

问题:Error in configuration process, project files may be invalid
解决:问题文件夹路径名太长,导致报错,将文件所在路径的长度缩短。
问题:无法获取.dll文件
VTK在手动配准属性表时,需要将
D:\AI\I_VTK\VTK_Bin\bin文件下所有的.dll文件复制到
C:\Windows\System32和C:\Windows\SysWOW64
问题:没有头文件 “itkImageIOFactoryRegisterManager.h”
解决:在项目内添加头文件 “itkImageIOFactoryRegisterManager.h”,如下:
/*=========================================================================
  *
  *  Copyright NumFOCUS
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
  *  You may obtain a copy of the License at
  *
  *         http://www.apache.org/licenses/LICENSE-2.0.txt
  *
  *  Unless required by applicable law or agreed to in writing, software
  *  distributed under the License is distributed on an "AS IS" BASIS,
  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  *
  *=========================================================================*/
  
 #ifndef itkImageIOFactoryRegisterManager_h
 #define itkImageIOFactoryRegisterManager_h
  
 namespace itk {
  
 class ImageIOFactoryRegisterManager
 {
   public:
   explicit ImageIOFactoryRegisterManager(void (* const list[])(void))
     {
     for(;*list != nullptr; ++list)
       {
       (*list)();
       }
     }
 };
  
  
 //
 //  The following code is intended to be expanded at the end of the
 //  itkImageFileReader.h and itkImageFileWriter.h files.
 //
 void  BMPImageIOFactoryRegister__Private();void  BioRadImageIOFactoryRegister__Private();void  Bruker2dseqImageIOFactoryRegister__Private();void  GDCMImageIOFactoryRegister__Private();void  GE4ImageIOFactoryRegister__Private();void  GE5ImageIOFactoryRegister__Private();void  GiplImageIOFactoryRegister__Private();void  HDF5ImageIOFactoryRegister__Private();void  JPEGImageIOFactoryRegister__Private();void  JPEG2000ImageIOFactoryRegister__Private();void  LSMImageIOFactoryRegister__Private();void  MINCImageIOFactoryRegister__Private();void  MRCImageIOFactoryRegister__Private();void  MetaImageIOFactoryRegister__Private();void  NiftiImageIOFactoryRegister__Private();void  NrrdImageIOFactoryRegister__Private();void  PNGImageIOFactoryRegister__Private();void  StimulateImageIOFactoryRegister__Private();void  TIFFImageIOFactoryRegister__Private();void  VTKImageIOFactoryRegister__Private();
  
 //
 // The code below registers available IO helpers using static initialization in
 // application translation units. Note that this code will be expanded in the
 // ITK-based applications and not in ITK itself.
 //
  
 void (* const ImageIOFactoryRegisterRegisterList[])(void) = {
   BMPImageIOFactoryRegister__Private,BioRadImageIOFactoryRegister__Private,Bruker2dseqImageIOFactoryRegister__Private,GDCMImageIOFactoryRegister__Private,GE4ImageIOFactoryRegister__Private,GE5ImageIOFactoryRegister__Private,GiplImageIOFactoryRegister__Private,HDF5ImageIOFactoryRegister__Private,JPEGImageIOFactoryRegister__Private,JPEG2000ImageIOFactoryRegister__Private,LSMImageIOFactoryRegister__Private,MINCImageIOFactoryRegister__Private,MRCImageIOFactoryRegister__Private,MetaImageIOFactoryRegister__Private,NiftiImageIOFactoryRegister__Private,NrrdImageIOFactoryRegister__Private,PNGImageIOFactoryRegister__Private,StimulateImageIOFactoryRegister__Private,TIFFImageIOFactoryRegister__Private,VTKImageIOFactoryRegister__Private,
   nullptr};
 const ImageIOFactoryRegisterManager ImageIOFactoryRegisterManagerInstance(ImageIOFactoryRegisterRegisterList);
  
 }
  
 #endif
问题:在添加“itkImageIOFactoryRegisterManager.h”后,会发现0000JPEG等不能解析时,就删除“itkImageIOFactoryRegisterManager.h”中对应的读取图片类型,就可以解决问题。
  C++知识库 最新文章
【C++】友元、嵌套类、异常、RTTI、类型转换
通讯录的思路与实现(C语言)
C++PrimerPlus 第七章 函数-C++的编程模块(
Problem C: 算法9-9~9-12:平衡二叉树的基本
MSVC C++ UTF-8编程
C++进阶 多态原理
简单string类c++实现
我的年度总结
【C语言】以深厚地基筑伟岸高楼-基础篇(六
c语言常见错误合集
上一篇文章      下一篇文章      查看所有文章
加:2022-04-29 11:55:13  更:2022-04-29 11:55:19 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年5日历 -2024/5/20 23:26:27-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码