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" 48 using namespace DGtal;
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;
161 if( image.domain().lowerBound() != image2.
domain().lowerBound()
162 || image.domain().upperBound() != image2.
domain().upperBound() )
172 int 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;
void beginBlock(const std::string &keyword="")
Aim: implements association bewteen points lying in a digital domain and values.
int main(int argc, char **argv)
Aim: Export a 3D Image using the Vol formats.
Aim: Parallelepidec region of a digital space, model of a 'CDomain'.
Aim: implements methods to read a "Vol" file format.
DGtal is the top-level namespace which contains all DGtal functions and types.
ImageContainerBySTLVector< Domain, Value > Image
const Domain & domain() const
std::vector< Value >::const_iterator ConstIterator