37 #include "DGtal/base/Common.h"
38 #include "DGtal/helpers/StdDefs.h"
40 #include "DGtal/kernel/PointFunctorHolder.h"
41 #include "DGtal/geometry/volumes/distance/DistanceTransformation.h"
43 #include "DGtal/io/boards/Board2D.h"
44 #include "DGtal/io/colormaps/HueShadeColorMap.h"
46 #include <boost/algorithm/minmax_element.hpp>
50 using namespace DGtal;
55 auto mickey = functors::holdPointFunctor<Z2i::Point>(
76 DTL2::Value maxDT = *boost::first_max_element(
dt.constRange().begin(),
dt.constRange().end() );
81 Display2DFactory::drawImage<HueTwice>(aBoard,
dt, 0, maxDT);
82 aBoard.
saveEPS(
"examplePointFunctorHolder.eps");
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Aim: implements separable l_p metrics with exact predicates.
Aim: This class template may be used to (linearly) convert scalar values in a given range into a colo...
double norm(const NormType type=L_2) const
void saveEPS(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
SpaceND< 2, Integer > Space
static const L2Metric l2Metric
DGtal is the top-level namespace which contains all DGtal functions and types.