43 #include "DGtal/kernel/BasicPointFunctors.h"
44 #include "DGtal/base/Common.h"
45 #include "DGtal/helpers/StdDefs.h"
46 #include "DGtal/io/readers/VolReader.h"
47 #include "DGtal/io/writers/PGMWriter.h"
48 #include "DGtal/images/ImageSelector.h"
49 #include "DGtal/images/ConstImageAdapter.h"
50 #include "ConfigExamples.h"
54 using namespace DGtal;
69 std::string filename = examplesPath +
"samples/lobster.vol";
72 proj(image.domain().upperBound()));
78 for (
unsigned int i=0; i<30; i+=10){
79 std::stringstream name;
80 name <<
"lobsterSliceZ_" << i <<
".pgm";
82 SliceImageAdapter sliceImageZ(image,
domain, aSliceFunctor, 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="")
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.
Aim: Functor that maps a point P of dimension i to a point Q of dimension j. The member myDims is an ...
void initAddOneDim(const Dimension &newDim)