33#include <DGtal/images/ImageSelector.h>
34#include <DGtal/images/ImageContainerBySTLVector.h>
35#include "DGtal/images/ConstImageAdapter.h"
36#include "DGtal/base/Common.h"
37#include "ConfigTest.h"
38#include "DGtal/helpers/StdDefs.h"
39#include "DGtal/images/RigidTransformation2D.h"
40#include "DGtal/io/readers/PGMReader.h"
41#include "DGtal/io/writers/GenericWriter.h"
64 typedef DomainRigidTransformation2D < Domain, ForwardTrans >
DomainTrans;
94 Domain d ( bounds.first, bounds.second );
95 Image transformed ( d );
100 transformed >>
"binary_after_forward.pgm";
107 Domain d ( bounds.first, bounds.second );
109 adapter >>
"binary_after_backward.pgm";
116 Domain d ( bounds.first, bounds.second );
118 adapter >>
"gray_after_backward.pgm";
125 Domain d ( bounds.first, bounds.second );
126 Image transformed ( d );
131 transformed >>
"gray_after_forward.pgm";
143 trace.beginBlock (
"Testing RigidTransformation2D" );
148 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...
void setValue(const Point &aPoint, const Value &aValue)
std::pair< typename Domain::Space::Point, typename Domain::Space::Point > Bounds
Z2i this namespace gathers the standard of types for 2D imagery.
Space::RealVector RealVector
functors namespace gathers all DGtal functors.
DGtal is the top-level namespace which contains all DGtal functions and types.
ImageContainerBySTLVector< Domain, Value > Type
Aim: Import a 2D or 3D using the Netpbm formats (ASCII mode).
Aim: Define a simple default functor that just returns its argument.