32#include "DGtal/base/Common.h"
33#include "DGtal/helpers/StdDefs.h"
34#include "DGtal/kernel/BasicPointFunctors.h"
35#include "DGtal/io/readers/VolReader.h"
36#include "DGtal/io/writers/PGMWriter.h"
37#include "DGtal/images/ImageContainerBySTLVector.h"
38#include "DGtal/images/ConstImageAdapter.h"
40#include "ConfigTest.h"
58 unsigned int nbok = 0;
60 std::string filename = testPath +
"samples/cat10.vol";
74 projX(image.domain().upperBound()));
79 MySliceImageAdapter sliceImageX(image, domainX, aSliceFunctor, identityFunctor);
84 projY(image.domain().upperBound()));
87 MySliceImageAdapter sliceImageY(image, domainY, aSliceFunctor2, identityFunctor);
93 projZ(image.domain().upperBound()));
97 MySliceImageAdapter sliceImageZ(image, domainZ, aSliceFunctor3, identityFunctor);
105 MyRotatorSliceImageAdapter sliceRotImageZ(image, domainZ, sliceRot, identityFunctor);
114 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
115 <<
"true == true" << std::endl;
124int main(
int argc,
char** argv )
128 for (
int i = 0; i < argc; ++i )
133 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
Aim: implements a const image adapter with a given domain (i.e. a subdomain) and 2 functors : g for d...
Aim: Implements basic operations that will be used in Point and Vector classes.
void beginBlock(const std::string &keyword="")
Special Point Functor that adds one dimension to a 2D point and apply on it a rotation of angle alpha...
DGtal is the top-level namespace which contains all DGtal functions and types.
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)
void initRemoveOneDim(const Dimension &dimRemoved)
bool testSliceImageFromFunctor()