【2016年7月4周】编译ITK
1、下载必备文件 InsightToolkit-4.8.1、cmake
2、cmake编译

修改CMAKE_INSTALL_PREFIX配置到需要生成的目录下面去。
然后Generate
进行相应的配置


编写相应的代码
// ConsoleApplication1.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <iostream>
#include "itkimage.h"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
typedef itk::Image<unsigned short,3> ImageType;
ImageType::Pointer iamge = ImageType::New();
cout<<"ok"<<endl;
return 0;
}

结果是正确的。