DGtal 1.4.2
|
#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::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(), fillCfg(), DGtal::SurfaceMeshMeasure< TRealPoint, TRealVector, TValue >::kMeasures(), DGtal::SurfaceMeshMeasure< TRealPoint, TRealVector, TValue >::kMeasures(), lightBetween(), lightEpsilon(), lightMax(), lightMaxMin(), lightMinMax(), main(), nbLighted(), DGtal::functors::BasicDomainSubSampler< TDomain, TInteger, TValue >::operator()(), DGtal::functors::FlipDomainAxis< TDomain >::operator()(), outputResults(), randomSeeds(), randomSeeds(), DGtal::PointVector< dim, TEuclideanRing, TContainer >::rows(), runATest(), 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::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::get(), DGtal::Trace::info(), 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(), DGtal::Trace::info(), 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(), DGtal::Trace::info(), iRand(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::isKeyValid(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::setValue(), srand(), and DGtal::trace.
Referenced by main().