42#include "DGtal/images/ImageSelector.h"
43#include "DGtal/images/ImageContainerBySTLVector.h"
44#include "DGtal/images/ConstImageAdapter.h"
45#include "ConfigExamples.h"
46#include "DGtal/helpers/StdDefs.h"
47#include "DGtal/base/Common.h"
48#include "DGtal/io/readers/VolReader.h"
49#include "DGtal/io/writers/GenericWriter.h"
50#include "DGtal/kernel/BasicPointFunctors.h"
52#include "DGtal/images/RigidTransformation3D.h"
58using namespace functors;
67 typedef ForwardRigidTransformation3D < Space > ForwardTrans;
68 typedef BackwardRigidTransformation3D < Space > BackwardTrans;
70 typedef DomainRigidTransformation3D < Domain, ForwardTrans > MyTransformedDomain;
71 typedef MyTransformedDomain::Bounds Bounds;
79 MyTransformedDomain domainForwardTrans ( forwardTrans );
85 Bounds bounds = domainForwardTrans ( image.domain() );
86 Domain transformedDomain ( bounds.first, bounds.second );
90 MyImageBackwardAdapter adapter ( image, transformedDomain, backwardTrans, idD );
92 adapter >>
"backward_transform.pgm3d";
96 Image transformed ( transformedDomain );
100 transformed.
setValue ( forwardTrans ( *it ), image ( *it ) );
103 transformed >>
"forward_transform.pgm3d";
Aim: implements a const image adapter with a given domain (i.e. a subdomain) and 2 functors : g for d...
Iterator for HyperRectDomain.
Aim: implements association bewteen points lying in a digital domain and values.
void setValue(const Point &aPoint, const Value &aValue)
void beginBlock(const std::string &keyword="")
Space::RealVector RealVector
DGtal is the top-level namespace which contains all DGtal functions and types.
static ImageContainer importVol(const std::string &filename, const Functor &aFunctor=Functor())
Aim: Define a simple default functor that just returns its argument.