ITK:图像A特定位置叠加图像B;
#include "itkImageRegionIterator.h"
SphinxExamples/src/Core/Common/ImageRegionOverlap/Code.cxx
//创建图像A,起点[0,0]
using RegionType = itk::ImageRegion<Dimension>;
RegionType::IndexType start;
start[0] = 0;
start[0] = 0;
RegionType::SizeType size;
size[0] = m_ImageSize[0];
size[1] = m_ImageSize[1];
//创建图像区域
RegionType region;
region.SetIndex(start);
region.SetSize(size);
//创建图像A
ImageTypeFloat::Pointer ImageA = ImageTypeFloat::New();
ImageA ->SetRegions(region);
ImageA ->SetSpacing(Spacing);
ImageA ->Allocate();