Go to the documentation of this file.
32 #include "DGtal/base/Common.h"
34 #include "DGtal/helpers/StdDefs.h"
35 #include "DGtal/images/ImageSelector.h"
36 #include "DGtal/io/colormaps/HueShadeColorMap.h"
37 #include "DGtal/io/readers/MagickReader.h"
38 #include "DGtal/io/boards/Board2D.h"
39 #include "ConfigTest.h"
40 #include "DGtalCatch.h"
44 using namespace DGtal;
53 unsigned char operator()(
const Color &c)
const
55 return (c.red() + c.green() + c.blue())%256;
66 std::string filename = testPath +
"samples/color64.png";
68 trace.
info()<<
"Importing: "<<filename<<endl;
77 Display2DFactory::drawImage<HueTwice>(board, img, (
unsigned char)0, (
unsigned char)255);
78 board.
saveSVG(
"testMagick-export.svg");
88 std::string filename = testPath +
"samples/color64.png";
90 trace.
info()<<
"Importing: "<<filename<<endl;
Structure representing an RGB triple with alpha component.
Aim: This class template may be used to (linearly) convert scalar values in a given range into a colo...
REQUIRE(domain.isInside(aPoint))
Aim: implements methods to read a 2D image using the ImageMagick library.
ImageContainerBySTLVector< Domain, Value > Image
DGtal is the top-level namespace which contains all DGtal functions and types.
void saveSVG(const char *filename, PageSize size=Board::BoundingBox, double margin=10.0) const
static ImageContainer importImage(const std::string &filename, const Functor &aFunctor=Functor(), bool topbotomOrder=true)
Aim: This class specializes a 'Board' class so as to display DGtal objects more naturally (with <<)....
Aim: implements association bewteen points lying in a digital domain and values.
SECTION("Testing constant forward iterators")
TEST_CASE("Magick Reader")