#if ( ITK_VERSION_MAJOR < 4 )//This only works with ITKv4
int main(int argc, char *argv[])
{
return 0;
}
#else
#include <iostream>
static void Vector(void);
static void Line(void);
int main(int argc, char *argv[])
{
Vector();
Line();
return EXIT_SUCCESS;
}
void Vector(void)
{
v[0] = 1;
v[1] = 1;
std::vector< itk::Offset<2> > offsets = line.
BuildLine(v, 4);
for(unsigned int i = 0; i < offsets.size(); i++)
{
std::cout << offsets[i] << std::endl;
}
}
void Line(void)
{
pixel0[0] = 0;
pixel0[1] = 0;
pixel1[0] = 5;
pixel1[1] = 5;
std::vector< itk::Index<2> > pixels = line.
BuildLine(pixel0, pixel1);
for(unsigned int i = 0; i < pixels.size(); i++)
{
std::cout << pixels[i] << std::endl;
}
}
#endif