32 #include "DGtal/base/Common.h"
33 #include "ConfigTest.h"
34 #include "DGtalCatch.h"
35 #include "DGtal/helpers/StdDefs.h"
36 #include "DGtal/io/readers/STBReader.h"
37 #include "DGtal/io/writers/STBWriter.h"
38 #include "DGtal/images/ImageSelector.h"
40 #include "DGtal/io/colormaps/GradientColorMap.h"
41 #include "DGtal/io/writers/PPMWriter.h"
45 using namespace DGtal;
53 SECTION(
"Testing feature io/readers of STBWriter (Grayscale PNG)")
55 std::string filename = testPath +
"samples/contourS.png";
62 CHECK( image.isValid());
65 SECTION(
"Testing feature io/readers of STBWriter (PNG)")
67 std::string filename = testPath +
"samples/color64.png";
70 CHECK( image.isValid());
77 SECTION(
"Testing scalar functor (PNG)")
92 CHECK( image.isValid());
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...
void addColor(const Color &color)
Aim: implements association bewteen points lying in a digital domain and values.
Aim: Image reader using the stb_image.h header only code.
Aim: Image Writer using the stb_image.h header only code.
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Export a 2D and a 3D Image using the Netpbm PPM formats (ASCII mode).
TEST_CASE("Testing STBWriter")
ImageContainerBySTLVector< Domain, Value > Image
SECTION("Testing constant forward iterators")