ITK  5.0.0
Insight Segmentation and Registration Toolkit
WikiExamples/PointSet/WritePointSet.cxx
#include "itkPointSet.h"
int main( int argc, char* argv[] )
{
// Verify the number of parameters in the command line
if( argc < 1 )
{
std::cerr << "Usage: " << std::endl;
std::cerr << argv[0] << " outputFile " << std::endl;
return EXIT_FAILURE;
}
std::string outputFilename = argv[1];
// Store points
using PointSetType = itk::PointSet<double, 3 >;
PointSetType::Pointer pointsSet = PointSetType::New();
return EXIT_SUCCESS;
}