DGtal 2.0.0
|
#include <iostream>
#include "DGtal/base/Common.h"
#include <cmath>
#include "DGtal/kernel/SpaceND.h"
#include "DGtal/kernel/domains/HyperRectDomain.h"
#include "DGtal/images/ImageContainerByHashTree.h"
Go to the source code of this file.
Macros | |
#define | dim experimental::ImageContainerByHashTree<Domain , T, DGtal::uint64_t >::dim |
#define | defHashKey typename experimental::ImageContainerByHashTree<Domain , int, DGtal::uint64_t >::HashKey |
Functions | |
int | iRand (int iMin, int iMax) |
template<typename Domain, typename T> | |
bool | test_setVal (experimental::ImageContainerByHashTree< Domain, T, DGtal::uint64_t > &container, bool checkAfterEachSet) |
template<typename Domain, typename T> | |
bool | test_get (experimental::ImageContainerByHashTree< Domain, T, DGtal::uint64_t > &container, bool) |
int | main (int argc, char **argv) |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Functions for testing class ImageContainerBenchmark.
This file is part of the DGtal library.
Definition in file testImageContainerByHashTree.cpp.
#define defHashKey typename experimental::ImageContainerByHashTree<Domain , int, DGtal::uint64_t >::HashKey |
Definition at line 41 of file testImageContainerByHashTree.cpp.
#define dim experimental::ImageContainerByHashTree<Domain , T, DGtal::uint64_t >::dim |
Definition at line 40 of file testImageContainerByHashTree.cpp.
Referenced by DGtal::functors::BasicDomainSubSampler< TDomain, TInteger, TValue >::BasicDomainSubSampler(), DGtal::SeparableMetricAdapter< TMetric >::binarySearchHidden(), DGtal::ConvexityHelper< 3 >::BOOST_STATIC_ASSERT(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::BOOST_STATIC_CONSTANT(), DGtal::IntegerConverter< dim, DGtal::BigInteger >::cast(), DGtal::IntegerConverter< dim, DGtal::BigInteger >::cast(), DGtal::IntegerConverter< dim, DGtal::int32_t >::cast(), DGtal::IntegerConverter< dim, DGtal::int32_t >::cast(), DGtal::IntegerConverter< dim, DGtal::int64_t >::cast(), DGtal::IntegerConverter< dim, DGtal::int64_t >::cast(), checkPowerMap(), checkVoronoi(), DGtal::Domain< TSpace, TPointPredicate, TSeparableMetric, TImageContainer >::computeOtherStep1D(), DGtal::PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer >::computeOtherStep1D(), DGtal::VoronoiMapComplete< TSpace, TPointPredicate, TSeparableMetric, TImageContainer >::computeOtherStep1D(), DGtal::Domain< TSpace, TPointPredicate, TSeparableMetric, TImageContainer >::computeOtherSteps(), DGtal::PowerMap< TWeightImage, TPowerSeparableMetric, TImageContainer >::computeOtherSteps(), DGtal::VoronoiMapComplete< TSpace, TPointPredicate, TSeparableMetric, TImageContainer >::computeOtherSteps(), fillCfg(), DGtal::experimental::ChamferNorm2D< TSpace >::getLowerVoronoiEdgeAbscissa(), DGtal::ExactPredicateLpSeparableMetric< TSpace, p, RawValue >::hiddenBy(), DGtal::experimental::ChamferNorm2D< TSpace >::hiddenBy(), DGtal::InexactPredicateLpSeparableMetric< TSpace, TValue >::hiddenBy(), DGtal::SeparableMetricAdapter< TMetric >::hiddenBy(), DGtal::ExactPredicateLpPowerSeparableMetric< Space, 2 >::hiddenByPower(), DGtal::ExactPredicateLpPowerSeparableMetric< TSpace, 2, TPromoted >::hiddenByPower(), DGtal::detail::RecursivePConvexity< dim - 1, Integer >::init(), DGtal::isUpper(), DGtal::SurfaceMeshMeasure< RealPoint, RealVector, Scalar >::kMeasures(), DGtal::SurfaceMeshMeasure< RealPoint, RealVector, Scalar >::kMeasures(), lightBetween(), lightEpsilon(), lightMax(), lightMaxMin(), lightMinMax(), main(), nbLighted(), DGtal::functors::BasicDomainSubSampler< TDomain, TInteger, TValue >::operator()(), DGtal::functors::FlipDomainAxis< TDomain >::operator()(), DGtal::operator<<(), DGtal::operator<<(), DGtal::operator<<(), DGtal::operator<<(), outputResults(), randomSeeds(), randomSeeds(), DGtal::detail::RecursivePConvexity< dim - 1, Integer >::RecursivePConvexity(), DGtal::PointVector< Calculus::dimensionAmbient, Scalar >::rows(), runATest(), DGtal::setDimensionsNotIn(), test_get(), test_manual_operators_2d(), testCompareExactBruteForce(), testCompareExactInexact(), testCompareInexactBruteForce(), testComparison(), timingsFullConvexity(), timingsFullConvexityFast(), timingsFullConvexityFastNonConvex(), timingsFullConvexityNonConvex(), timingsPConvexity(), and timingsPConvexityNonConvex().
int iRand | ( | int | iMin, |
int | iMax ) |
Definition at line 45 of file testImageContainerByHashTree.cpp.
Referenced by test_get(), and test_setVal().
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 162 of file testImageContainerByHashTree.cpp.
References DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::get(), test_get(), test_setVal(), and DGtal::trace.
bool test_get | ( | experimental::ImageContainerByHashTree< Domain, T, DGtal::uint64_t > & | container, |
bool | ) |
Definition at line 120 of file testImageContainerByHashTree.cpp.
References DGtal::Bits::bitString(), dim, DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::get(), iRand(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::isKeyValid(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::setValue(), srand(), and DGtal::trace.
Referenced by main().
bool test_setVal | ( | experimental::ImageContainerByHashTree< Domain, T, DGtal::uint64_t > & | container, |
bool | checkAfterEachSet ) |
Definition at line 52 of file testImageContainerByHashTree.cpp.
References DGtal::Bits::bitString(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::checkIntegrity(), iRand(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::isKeyValid(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::setValue(), srand(), and DGtal::trace.
Referenced by main().