32 #include "DGtal/images/ImageContainerBySTLVector.h" 33 #include "DGtal/helpers/StdDefs.h" 34 #include "DGtal/io/readers/DicomReader.h" 36 #include "ConfigTest.h" 41 using namespace DGtal;
56 std::string filename = testPath +
"samples/dicomSample/1629.dcm";
61 unsigned int nbVal=0, nbPos = 0;
65 if ( (*it) > 0 ) nbPos++;
68 trace.
info() <<
"Number of points with (val>0) = " << nbVal << endl;
70 return nbVal==2130048 && nbPos==296030;
79 std::string filename = testPath +
"samples/null.dcm";
84 trace.
info() <<
"Exception catched. Message : " << e.what()<<endl;
94 int main(
int argc,
char** argv )
98 for (
int i = 0; i < argc; ++i )
103 trace.
emphase() << ( res ?
"Passed." :
"Error." ) << endl;
void beginBlock(const std::string &keyword="")
MyDigitalSurface::ConstIterator ConstIterator
Aim: Import a 3D DICOM image from file series.
int main(int argc, char **argv)
DGtal is the top-level namespace which contains all DGtal functions and types.