Download ITK 3.20.1
Download VS2010
Download CMake 3.2.0
I assume you've already installed VS2010 and CMake 3.2.0 correctly.
Compile the VTK:
Start CMake 3.2.0, fill the source and destination:
source: C:/ITK3.20.1/InsightToolkit-3.20.1
destination: C:/ITK3.20.1/VS2010
Click Configure and use Visual Studio 10 2010 to complie.
When first configure is done, select Grouped and Advanced.
BUILD_EXAMPLES [ON]
BUILD_TEST [ON]
CMAKE_INSTALL_PREFIX [C:/ITK3.20.1/VS2010_install]
CMAKE_USE_PTHREADS [OFF]
CMAKE_USE_WIN32_THREADS [ON]
click Configure again.
After configure is done (No errors show), click Generate.
Go back to your build folder, open ITK.sln, right click ALL_BUILD, choose Rebuild.
Wait a long time for make process, have a cup of coffee :)
After rebuild is done, right click INSTALL, choose Build.
Now, the configuration is done, enjoy it :)
Create a new empty project,
Add in the system Path:
C:\ITK3.20.1\VS2010_install\bin
Project->Project Property->Configuration Properties->VC++Directories ->Include Directories:
C:\ITK3.20.1\VS2010_install\include\InsightToolkit
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\Algorithms
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\BasicFilters
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\Common
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\gdcm\src
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\IO
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\Numerics
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\SpatialObject
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\Utilities
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\Utilities\vxl\vcl
C:\ITK3.20.1\VS2010_install\include\InsightToolkit\Utilities\vxl\core
Project->Project Property->Configuration Properties->VC++Directories ->Library Directories:
C:\ITK3.20.1\VS2010_install\lib\InsightToolkit
Project->Project Property->Configuration Properties->Linker->Input:
ITKAlgorithms.lib
ITKBasicFilters.lib
ITKCommon.lib
ITKDICOMParser.lib
ITKEXPAT.lib
ITKFEM.lib
itkgdcm.lib
ITKIO.lib
itkjpeg8.lib
itkjpeg12.lib
itkjpeg16.lib
ITKMetaIO.lib
itkNetlibSlatec.lib
ITKniftiio.lib
ITKNrrdIO.lib
ITKNumerics.lib
itkopenjpeg.lib
itkpng.lib
ITKSpatialObject.lib
ITKStatistics.lib
itksys.lib
itktiff.lib
itkv3p_lsqr.lib
itkv3p_netlib.lib
itkvcl.lib
itkvnl.lib
itkvnl_algo.lib
itkvnl_inst.lib
itkzlib.lib
ITKznz.lib
snmpapi.lib
rpcrt4.lib
wsock32.lib
Create a test.cpp file as below:
#include"itkImage.h"
#include<iostream> int main(){ typedef itk::Image< unsigned short, >ImageType;
ImageType::Pointer image= ImageType::New(); int i; std::cout<<"ITK hello world !"<<std::endl;
std::cin>>i;
return ;
}
ITK 3.20.1 VS2010 Configuration 配置的更多相关文章
-
VTK 5.10.1 VS2010 Configuration 配置
Download VTK 5.10.1 Download VS2010 Download CMake 3.2.0 I assume you've already installed VS2010 an ...
-
FLTK 1.1.10 VS2010 Configuration 配置
Download FLTK 1.1.10 at here. Download VS2010 Download CMake 2.8.12 I assume you've already installe ...
-
ITK 4.8.1 Qt 5.4 MinGW 4.9.1 Configuration 配置
Download ITK 4.8.1 Download Qt 5.4 with MinGW 4.9.1 Download CMake 3.2.0 I assume you've already ins ...
-
VTK 6.3.0 Qt 5.4 MinGW 4.9.1 Configuration 配置
Download VTK 6.3.0 Download Qt 5.4 with MinGW 4.9.1 Download CMake 3.2.0 I assume you've already ins ...
-
Ubuntu_10.04下Hadoop-0.20.2集群配置手册
Ubuntu_10.04下Hadoop-0.20.2集群配置手册 一.软硬件环境的准备 下面的文章来自hadoopor.com,我先交待一下我自己的环境: 两台机器,每台机器上面两个虚机(vmware ...
-
VS2010中配置OpenGL
下面将对VS2010中配置OpenGL进行简单介绍. 学习OpenGL前的准备工作第一步,选择一个编译环境现在Windows系统的主流编译环境有Visual Studio,Broland C++ Bu ...
-
VS2010/2012配置优化记录笔记
VS2010/2012配置优化记录笔记 在某些情况下VS2010/2012运行真的实在是太卡了,有什么办法可以提高速度吗?下面介绍几个优化策略,感兴趣的朋友可以参考下,希望可以帮助到你 有的时候V ...
-
Spring之@Configuration配置解析
1.简单的示例: @Configuration @EnableConfigurationProperties({DemoProperties.class}) public class DemoConf ...
-
【转】Win7下VS2010中配置Opencv2.4.4的方法(32位和64位都有效)(亲测成功)
在vs2010下配置opencv是件痛苦的事情,一点点错误可能就会导致莫名其妙的报错,各种error让人郁闷不已,这里提供给大家一篇vs2010下配置opencv2.4.4的方法,我是64位的win7 ...
随机推荐
-
MySQL学习笔记十六:锁机制
1.数据库锁就是为了保证数据库数据的一致性在一个共享资源被并发访问时使得数据访问顺序化的机制.MySQL数据库的锁机制比较独特,支持不同的存储引擎使用不同的锁机制. 2.MySQL使用了三种类型的锁机 ...
-
GCD使用dispatch_semaphore_t创建多线程网络同步请求
一.简介: dispatch_semaphore_t:表示信号,生成信号的方法是 dispatch_semaphore_t semaphore= dispatch_semaphore_create(0 ...
-
sqlserver字段类型详解(转)
bit 整型 bit数据类型是整型,其值只能是0.1或空值.这种数据类型用于存储只有两种可能值的数据,如Yes 或No.True 或False .On 或Off. 注意:很省空间的一种数据类型, ...
-
完整学习git三 查看暂存区目录树 git diff
1显示暂存区中的目录树 git ls-files git ls-tree git diff 魔法 1工作区与暂存区比较 git diff 2工作区与HEAD比较 git diff HEAD 3暂存区与 ...
-
Lucky and Good Months by Gregorian Calendar(模拟)
http://poj.org/problem?id=3393 好大的一道模拟题,直接当阅读理解看了.下面是大神写的题意,解释的好详细. 定义: Goog month : 该月第一个工作日为星期一的月份 ...
-
TCP/IP 要点备忘
1. 3次握手/4次挥手过程,以及状态变化: 2. RTT,TTL,TOS(8位服务类型,最小延时.最大吞吐.最高可用.最小费用). 3. TimeWait(2msl)状态,防止最后一个ack丢失 4 ...
-
magento获取商品的图片
获取商品的图片主要从catalog_product_entity_media_gallery 表中 该表中各列的属性代表 value_id:记录 ID,可以留空让数据库自动生成. attribute_ ...
-
oracle数据库删除数据恢复
select * from table_name as of timestamp trunc(sysdate)-10; 数字部分可以调整到最近时间内 复制表内容 insert into res_pro ...
-
Struts2 应知应会
struts.xml 文件的 action 的配置: Struts2 中结果类型的配置来自于下面: 其中: dispatcher:转发技术,转发到一个 jsp 视图 redirect:重定向到一个 j ...
-
Linux:Aircrack-ng
Aircrack-ng 工具主要有 airmon-ng 处理网卡工作模式 airodump-ng 抓包 aircrack-ng 破解 aireplay-ng 发包,干扰 另外还要用到以下 linux ...