Example of 2D image display in 3D by 3D embedding.
Illustration of multiple 2D image extraction and visualisation from 3D embedding
#include "DGtal/base/Common.h"
#include "DGtal/io/readers/VolReader.h"
#include "DGtal/images/ImageHelper.h"
#include "ConfigExamples.h"
#include "DGtal/io/viewers/PolyscopeViewer.h"
#include "DGtal/kernel/BasicPointFunctors.h"
{
polyscope::options::programName = "examples/io/viewers: viewer3D-8bis-2Dimages";
std::string inputFilename = examplesPath + "samples/lobster.vol";
unsigned int pos=0;
for (double alpha = 0; alpha< 1.54; alpha+= 0.01){
static_cast<int>(100.0*sin(alpha))),
ImageAdapterExtractor extractedImage(imageVol, domainImage2D, embedder, idV);
viewer << extractedImage;
pos++;
}
return EXIT_SUCCESS;
}
Aim: implements a const image adapter with a given domain (i.e. a subdomain) and 2 functors : g for d...
void show() override
Starts the event loop and display of elements.
Aim: Functor that embeds a 2D point into a 3D space from two axis vectors and an origin point given i...
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: implements methods to read a "Vol" file format.
Aim: Define a simple default functor that just returns its argument.