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/images/ImageSelector.h"
39 #include "DGtal/io/writers/PPMWriter.h"
44 using namespace DGtal;
52 SECTION(
"Testing feature io/readers of STBReader (Grayscale PNG)")
54 std::string filename = testPath +
"samples/contourS.png";
60 CHECK( image.isValid());
63 SECTION(
"Testing feature io/readers of STBReader (PPM color)")
65 std::string filename = testPath +
"samples/color64.";
70 CHECK( image.isValid());
73 SECTION(
"Testing all file formats")
75 std::string filename = testPath +
"samples/color64.";
92 CHECK( imageBMP == imagePPM );
93 CHECK( imageTGA == imagePPM );
94 CHECK( imagePNG == imagePPM );
Aim: implements association bewteen points lying in a digital domain and values.
Aim: Image reader 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 STBReader")
ImageContainerBySTLVector< Domain, Value > Image
SECTION("Testing constant forward iterators")