44 #include "DGtal/kernel/BasicPointFunctors.h"
45 #include "DGtal/base/Common.h"
46 #include "DGtal/helpers/StdDefs.h"
47 #include "DGtal/io/readers/VolReader.h"
48 #include "DGtal/io/writers/PGMWriter.h"
49 #include "DGtal/images/ImageSelector.h"
50 #include "DGtal/images/ConstImageAdapter.h"
51 #include "ConfigExamples.h"
55 using namespace DGtal;
75 static_cast<int>((ptUpper2-origin).norm())));
83 std::string filename = examplesPath +
"samples/lobster.vol";
91 for (
unsigned int i=0; i<30; i+=10){
92 std::stringstream name;
93 name <<
"lobsterExtracted_" << i <<
".pgm";
94 std::stringstream name2;
95 name2 <<
"lobsterExtracted_" << i <<
"V2.pgm";
102 ImageAdapterExtractor extractedImage(image, domainImage2D, embedder, idV);
109 ImageAdapterExtractor extractedImage2(image, domainImage2D2, embedder2, idV);
Aim: implements a const image adapter with a given domain (i.e. a subdomain) and 2 functors : g for d...
void beginBlock(const std::string &keyword="")
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: Export a 2D and a 3D Image using the Netpbm PGM formats (ASCII mode).
Aim: implements methods to read a "Vol" file format.
Aim: Define a simple default functor that just returns its argument.