32 #include "DGtal/base/Common.h"
33 #include "DGtal/helpers/StdDefs.h"
34 #include "DGtal/images/ImageSelector.h"
35 #include "DGtal/images/ImageContainerBySTLVector.h"
36 #include "DGtal/io/writers/LongvolWriter.h"
37 #include "DGtal/io/readers/LongvolReader.h"
42 using namespace DGtal;
53 unsigned int nbok = 0;
65 image.setValue(c,45693);
74 it != itend; ++it, ++ito)
75 if (((*it) != 0 ) || ((*ito) != 0))
76 allFine &= ( ((*it)*(*ito)) != 0);
78 nbok += allFine ? 1 : 0;
80 trace.
info() <<
"(" << nbok <<
"/" << nb <<
") "
81 <<
"true == true" << std::endl;
90 int main(
int argc,
char** argv )
94 for (
int i = 0; i < argc; ++i )
99 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
std::vector< Value >::const_iterator ConstIterator
Aim: implements association bewteen points lying in a digital domain and values.
void beginBlock(const std::string &keyword="")
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: implements methods to read a "Longvol" file format (with DGtal::uint64_t value type).
Aim: Export a 3D Image using the Longvol formats (volumetric image with DGtal::uint64_t value type).
int main(int argc, char **argv)
ImageContainerBySTLVector< Domain, Value > Image