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"
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.
static ImageContainer import(const std::string &filename, const Functor &aFunctor=Functor())
DGtal is the top-level namespace which contains all DGtal functions and types.
ImageContainerBySTLVector< Domain, Value > Type
static bool exportPPM(const std::string &filename, const Image &aImage, const Functor &aFunctor=Functor(), bool topbottomOrder=true)
TEST_CASE("Testing STBReader")
SECTION("Testing constant forward iterators")