32 #include "DGtal/base/Common.h" 33 #include "ConfigTest.h" 34 #include "DGtalCatch.h" 35 #include "DGtal/helpers/StdDefs.h" 36 #include "DGtal/images/ImageContainerBySTLVector.h" 37 #include "DGtal/io/readers/ITKReader.h" 41 using namespace DGtal;
54 "Testing feature io/readers of ITKReader with 16 bits (unit16) images" )
57 testPath +
"samples/lobsterCroped16b.mhd" );
62 "Testing feature io/readers of ITKReader with rescaled 16 bits (unit16) " 66 RescalFCT resc = RescalFCT( 0, 65535, 0, 255 );
68 testPath +
"samples/lobsterCroped16b.mhd", resc );
72 "Testing behavior of ITKReader on non existent image file" )
74 bool caughtException =
false;
75 const std::string filename = testPath +
"samples/null.mhd";
82 caughtException =
true;
83 trace.
info() <<
"Exception was correctly caught" << std::endl;
85 REQUIRE( caughtException ==
true);
REQUIRE(domain.isInside(aPoint))
Aim: Import a 2D/3D Image using the ITK formats.
TEST_CASE("Testing ITKReader")
Aim: Functor allowing to rescale a value. Values of the initial scale [initMin,initMax] are rescaled ...
DGtal is the top-level namespace which contains all DGtal functions and types.
SECTION("Testing constant forward iterators")