#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "ConfigExamples.h"
#include "DGtal/io/boards/Board2D.h"
#include "DGtal/io/colormaps/HueShadeColorMap.h"
#include "DGtal/io/colormaps/GrayscaleColorMap.h"
#include "DGtal/images/ImageContainerBySTLVector.h"
#include "DGtal/images/ConstImageAdapter.h"
template <typename Scalar>
{
}
};
{
trace.beginBlock(
"image");
unsigned char i = 0;
for (Image::Iterator it =
image.begin(); it !=
image.end(); ++it)
*it = i++;
trace.beginBlock(
"subImage");
ConstImageAdapterForSubImage subImage(
image, subDomain, df, df);
trace.beginBlock(
"specificImage");
for( unsigned int y=0; y < 17; y++)
for( unsigned int x=0; x < 17; x++)
if ((x%2) && (y%2))
set.insertNew(
Point(x,y));
ConstImageAdapterForSpecificImage specificImage(
image, specificDomain, df, df);
aBoard.
saveSVG(
"specificImage.svg");
trace.beginBlock(
"thresholderImage");
ConstImageAdapterForThresholderImage thresholderImage(
image,
domain, df, t);
aBoard.
saveSVG(
"thresholderImage.svg");
trace.beginBlock(
"logImage");
ConstImageAdapterForLogScale logImage(
image,
domain, df, logScale);
return 0;
}
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Aim: implements a const image adapter with a given domain (i.e. a subdomain) and 2 functors : g for d...
Aim: Constructs a domain limited to the given digital set.
Aim: This class template may be used to (linearly) convert scalar values in a given range into gray l...
Aim: This class template may be used to (linearly) convert scalar values in a given range into a colo...
Aim: A small functor with an operator () that compares one value to a threshold value according to tw...
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.
DGtal is the top-level namespace which contains all DGtal functions and types.
static void drawImage(DGtal::Board2D &board, const Image &i, const typename Image::Value &minV, const typename Image::Value &maxV)
static double castToDouble(const T &aT)
Aim: Define a simple default functor that just returns its argument.
double operator()(const Scalar &a) const
ImageContainerBySTLVector< Domain, Value > Image
HyperRectDomain< Space > Domain
Z2i::DigitalSet DigitalSet