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"
57 using namespace DGtal;
58 using namespace functors;
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.
Aim: Automatically defines an adequate image type according to the hints given by the user.
Aim: implements methods to read a "Vol" file format.
Aim: Define a simple default functor that just returns its argument.
ImageContainerBySTLVector< Domain, Value > Image