32#include "DGtal/base/Common.h"
33#include "DGtal/kernel/SpaceND.h"
34#include "DGtal/kernel/domains/HyperRectDomain.h"
35#include "DGtal/images/ImageSelector.h"
36#include "DGtal/io/readers/VolReader.h"
37#include "DGtal/io/colormaps/HueShadeColorMap.h"
38#include "DGtal/io/colormaps/GrayscaleColorMap.h"
39#include "DGtal/io/colormaps/GradientColorMap.h"
40#include "DGtal/io/colormaps/ColorBrightnessColorMap.h"
41#include "DGtal/io/writers/VolWriter.h"
43#include "ConfigTest.h"
59 unsigned int nbok = 0;
71 std::string filename = testPath +
"samples/cat10.vol";
82 trace.
info() <<
"Number of points with (val!=0) = "<<nbval<<endl;
84 nbok += ( nbval == 8043) ? 1 : 0;
89 nbok += ( true ) ? 1 : 0;
92 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
93 <<
"true == true" << std::endl;
102 unsigned int nbok = 0;
114 std::string filename = testPath +
"samples/null.vol";
121 trace.
info() <<
"Exception catched. Message : "<< e.what()<<endl;
126 nbok += ( true ) ? 1 : 0;
129 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
130 <<
"true == true" << std::endl;
142 typedef TDomain::Point
Point;
161 if( image.domain().lowerBound() != image2.
domain().lowerBound()
162 || image.domain().upperBound() != image2.
domain().upperBound() )
172int main(
int argc,
char** argv )
175 std::cout << aaaaa << std::endl;
179 for (
int i = 0; i < argc; ++i )
184 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
std::vector< Value >::const_iterator ConstIterator
Aim: implements association bewteen points lying in a digital domain and values.
const Domain & domain() const
void beginBlock(const std::string &keyword="")
DGtal is the top-level namespace which contains all DGtal functions and types.
static ImageContainer importVol(const std::string &filename, const Functor &aFunctor=Functor())
static bool exportVol(const std::string &filename, const Image &aImage, const bool compressed=true, const Functor &aFunctor=Functor())