34#include "DGtal/base/Common.h"
35#include "ConfigTest.h"
36#include "DGtalCatch.h"
37#include "DGtal/helpers/StdDefs.h"
38#include "DGtal/helpers/Shortcuts.h"
39#include "DGtal/helpers/ShortcutsGeometry.h"
53TEST_CASE(
"Testing IntegralInvariant Shortcuts API" )
56 params(
"polynomial",
"goursat" )(
"gridstep", 1. );
65 trace.
info() <<
"Nb surfels= " << surfels.size() << std::endl;
68 params(
"r-radius", 3.0);
74 std::vector<double> k1,k2,G;
75 for(
auto &result: Tcurv)
77 k1.push_back( std::get<0>(result) );
78 k2.push_back( std::get<1>(result) );
79 G.push_back( ( std::get<0>(result) * std::get<1>(result)) );
82 SECTION(
"Testing that mean/Gaussian/tensor curvature shortucut values match")
84 for(std::size_t i = 0; i < G.size(); ++i)
85 REQUIRE( Kcurv[i] == Approx( G[i] ) );
Aim: This class is used to simplify shape and surface creation. With it, you can create new shapes an...
static Scalars getIIGaussianCurvatures(CountedPtr< BinaryImage > bimage, const SurfelRange &surfels, const Parameters ¶ms=parametersGeometryEstimation()|parametersKSpace())
static Parameters parametersGeometryEstimation()
static CurvatureTensorQuantities getIIPrincipalCurvaturesAndDirections(CountedPtr< BinaryImage > bimage, const SurfelRange &surfels, const Parameters ¶ms=parametersGeometryEstimation()|parametersKSpace())
static Parameters defaultParameters()
Aim: This class is used to simplify shape and surface creation. With it, you can create new shapes an...
static KSpace getKSpace(const Point &low, const Point &up, Parameters params=parametersKSpace())
static CountedPtr< DigitizedImplicitShape3D > makeDigitizedImplicitShape3D(CountedPtr< ImplicitShape3D > shape, Parameters params=parametersDigitizedImplicitShape3D())
static SurfelRange getSurfelRange(CountedPtr< ::DGtal::DigitalSurface< TDigitalSurfaceContainer > > surface, const Parameters ¶ms=parametersDigitalSurface())
static CountedPtr< LightDigitalSurface > makeLightDigitalSurface(CountedPtr< BinaryImage > bimage, const KSpace &K, const Parameters ¶ms=parametersDigitalSurface())
static Parameters defaultParameters()
static CountedPtr< BinaryImage > makeBinaryImage(Domain shapeDomain)
static CanonicCellEmbedder< KSpace > getCellEmbedder(const KSpace &K)
static CountedPtr< ImplicitShape3D > makeImplicitShape3D(const Parameters ¶ms=parametersImplicitShape3D())
CountedPtr< SH3::DigitalSurface > surface
CountedPtr< SH3::BinaryImage > binary_image
DGtal is the top-level namespace which contains all DGtal functions and types.
TEST_CASE("Testing IntegralInvariant Shortcuts API")
Shortcuts< Z3i::KSpace > SH3
ShortcutsGeometry< Z3i::KSpace > SHG3
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))