Example of point list import.
- See also
- Image and digital object import/export
Visualisation of 3d imported point list
#include "DGtal/base/Common.h"
#include "DGtal/io/readers/PointListReader.h"
#include "DGtal/io/viewers/PolyscopeViewer.h"
#include "DGtal/io/Color.h"
#include "DGtal/helpers/StdDefs.h"
#include "ConfigExamples.h"
using namespace Z3i;
{
std::string inputFilename = examplesPath + "samples/pointList3d.pl";
for(unsigned int i=0; i<vectPoints.size();i++){
viewer << vectPoints.at(i);
}
vector<unsigned int> vPos;
vPos.push_back(0);
vPos.push_back(2);
vPos.push_back(1);
for(unsigned int i=0; i<vectPoints.size();i++){
viewer << vectPoints.at(i);
}
return 0;
}
Structure representing an RGB triple with alpha component.
void show() override
Starts the event loop and display of elements.
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Implements method to read a set of points represented in each line of a file.