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"
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.
ImageContainerBySTLVector< Domain, Value > Type
static bool exportPGM(const std::string &filename, const Image &aImage, const Functor &aFunctor=Functor(), bool saveASCII=false, bool topbotomOrder=true)
static ImageContainer importVol(const std::string &filename, const Functor &aFunctor=Functor())
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)