39 #include "DGtal/base/Common.h"
40 #include "DGtal/io/readers/VolReader.h"
41 #include "DGtal/images/ImageHelper.h"
42 #include "ConfigExamples.h"
43 #include "DGtal/io/viewers/Viewer3D.h"
45 #include "DGtal/kernel/BasicPointFunctors.h"
51 using namespace DGtal;
55 int main(
int argc,
char** argv )
64 QApplication application(argc,argv);
68 std::string inputFilename = examplesPath +
"samples/lobster.vol";
85 for (
double alpha = 0; alpha< 1.54; alpha+= 0.01){
89 ptCenter+
DGtal::Z3i::Point(
static_cast<int>(200.0*cos(alpha)),
static_cast<int>(100.0*sin(alpha))),
92 ImageAdapterExtractor extractedImage(imageVol, domainImage2D, embedder, idV);
97 viewer << extractedImage;
98 viewer << DGtal::UpdateImage3DEmbedding<Z3i::Space, Z3i::KSpace>(pos,
108 viewer << MyViewer::updateDisplay;
111 return application.exec();
Aim: implements a const image adapter with a given domain (i.e. a subdomain) and 2 functors : g for d...
const Point & upperBound() const
virtual void show()
Overload QWidget method in order to add a call to updateList() method (to ensure that the lists are w...
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.
int main(int argc, char **argv)