ITK
4.8.0
Insight Segmentation and Registration Toolkit
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
WikiExamples/SimpleOperations/Offset.cxx
#include "
itkIndex.h
"
#include "
itkOffset.h
"
#include <iostream>
int
main(
int
argc,
char
*argv[])
{
itk::Index<2>
index;
index[0] = 5;
index[1] = 5;
itk::Offset<2>
offset;
offset[0] = 1;
offset[1] = 1;
std::cout << offset << std::endl;
std::cout << index + offset << std::endl;
return
EXIT_SUCCESS;
}
Generated on Fri Jul 3 2015 02:47:50 for ITK by
1.8.5