32#include "DGtal/base/Common.h"
33#include "ConfigTest.h"
34#include "DGtalCatch.h"
35#include "DGtal/helpers/StdDefs.h"
36#include "DGtal/io/writers/LongvolWriter.h"
37#include "DGtal/io/readers/LongvolReader.h"
38#include "DGtal/io/writers/VolWriter.h"
39#include "DGtal/io/readers/VolReader.h"
40#include "DGtal/images/ImageContainerBySTLVector.h"
50template <
typename Image>
53 for(
auto p: a.domain())
57 trace.
info()<< p <<
" "<< a(p) <<
" "<<b(p)<<std::endl;
69 image.setValue(
Point(5,5,5), 42);
71 SECTION(
"Testing API of CompressedVol")
78 SECTION(
"Testing write/read of CompressedVolWriter")
95 image.setValue(
Point(1,1,1), 0X8899AABBCCDDEEFFull);
97 SECTION(
"Testing API of CompressedVolWriter")
105 SECTION(
"Testing write/read of CompressedVolWriter")
Aim: implements association bewteen points lying in a digital domain and values.
DGtal is the top-level namespace which contains all DGtal functions and types.
static ImageContainer importLongvol(const std::string &filename, const Functor &aFunctor=Functor())
Aim: Export a 3D Image using the Longvol formats (volumetric image with DGtal::uint64_t value type).
static ImageContainer importVol(const std::string &filename, const Functor &aFunctor=Functor())
Aim: Export a 3D Image using the Vol formats.
TEST_CASE("Testing CompressedVolWriter")
bool checkImage(const Image &a, const Image &b)
ImageContainerBySTLVector< Domain, Value > Image
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))