33#include "DGtal/base/Common.h"
34#include "DGtal/helpers/StdDefs.h"
35#include "DGtal/io/boards/Board2D.h"
38#include <DGtal/io/colormaps/HueShadeColorMap.h>
41#include "DGtal/images/ConstImageFunctorHolder.h"
61 [] (
Point const& pt) {
return 25 * ( std::cos( (pt -
Point(4,4)).norm() ) + 1 ); }
66 DGtal::Display2DFactory::drawImage<HueShadeDouble>(aBoard, image1, 0, 225);
67 aBoard.
saveSVG(
"ConstImageFunctorHolder_example1.svg");
82 DGtal::Display2DFactory::drawImage<HueShadeDouble>(aBoard, image2, 0, 225);
83 aBoard.
saveSVG(
"ConstImageFunctorHolder_example2.svg");
89 [&image1, &image2] (
Point const& pt) {
return image1(pt) + image2(pt); }
94 DGtal::Display2DFactory::drawImage<HueShadeDouble>(aBoard, image3, 0, 225);
95 aBoard.
saveSVG(
"ConstImageFunctorHolder_example3.svg");
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Aim: This class template may be used to (linearly) convert scalar values in a given range into a colo...
const Point & lowerBound() const
const Point & upperBound() const
void clear(const DGtal::Color &color=DGtal::Color::None)
void saveSVG(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
Z2i this namespace gathers the standard of types for 2D imagery.
auto holdConstImageFunctor(TDomain const &aDomain, TFunctor &&aFunctor) -> ConstImageFunctorHolder< TDomain, TValue, decltype(holdFunctor(std::forward< TFunctor >(aFunctor)))>
ConstImageFunctorHolder construction helper with specification of the return type.
HyperRectDomain< Space > Domain