DGtal 1.4.0
|
#include <limits>
#include <unordered_set>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtalCatch.h"
#include "DGtal/geometry/volumes/distance/VoronoiMapComplete.h"
#include "DGtal/geometry/volumes/distance/VoronoiMap.h"
Go to the source code of this file.
Typedefs | |
typedef Z2i::DigitalSet | DigitalSet |
typedef Z2i::Point | Point |
typedef Z2i::Domain | Domain |
typedef VoronoiMapComplete< Z2i::Space, DigitalSet, Z2i::L2Metric > | CompleteVMap |
typedef VoronoiMap< Z2i::Space, DigitalSet, Z2i::L2Metric > | VMap |
typedef ImageContainerBySTLVector< HyperRectDomain< Z2i::Space >, std::unordered_set< Z2i::Point > > | TImageContainer |
Functions | |
TImageContainer * | brut_force_voronoi_map_complete (DigitalSet &set) |
TEST_CASE ("Testing VoronoiMapComplete 2D") | |
TEST_CASE ("No sites") | |
TEST_CASE ("Testing Timings") | |
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 VoronoiMapComplete.
This file is part of the DGtal library.
Definition in file testVoronoiMapComplete.cpp.
Definition at line 44 of file testVoronoiMapComplete.cpp.
typedef Z2i::DigitalSet DigitalSet |
Definition at line 40 of file testVoronoiMapComplete.cpp.
typedef Z2i::Domain Domain |
Definition at line 42 of file testVoronoiMapComplete.cpp.
typedef Z2i::Point Point |
Definition at line 41 of file testVoronoiMapComplete.cpp.
typedef ImageContainerBySTLVector<HyperRectDomain<Z2i::Space>, std::unordered_set<Z2i::Point> > TImageContainer |
Definition at line 48 of file testVoronoiMapComplete.cpp.
typedef VoronoiMap<Z2i::Space, DigitalSet, Z2i::L2Metric> VMap |
Definition at line 45 of file testVoronoiMapComplete.cpp.
TImageContainer * brut_force_voronoi_map_complete | ( | DigitalSet & | set | ) |
Definition at line 50 of file testVoronoiMapComplete.cpp.
References DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::domain(), and DGtal::ImageContainerBySTLVector< TDomain, TValue >::setValue().
Referenced by TEST_CASE().
TEST_CASE | ( | "No sites" | ) |
Random set generation
Definition at line 189 of file testVoronoiMapComplete.cpp.
References DGtal::Trace::beginBlock(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::domain(), domain, DGtal::Trace::endBlock(), DGtal::Z2i::l2Metric, and DGtal::trace.
TEST_CASE | ( | "Testing Timings" | ) |
Random set generation
Definition at line 206 of file testVoronoiMapComplete.cpp.
References DGtal::Trace::beginBlock(), DGtal::VoronoiMapComplete< TSpace, TPointPredicate, TSeparableMetric, TImageContainer >::constRange(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::domain(), domain, DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::insert(), DGtal::Z2i::l2Metric, and DGtal::trace.
TEST_CASE | ( | "Testing VoronoiMapComplete 2D" | ) |
Random set generation
Voronoi Map Complete from class generation
Voronoi Map Complete from brut force generation
Definition at line 91 of file testVoronoiMapComplete.cpp.
References brut_force_voronoi_map_complete(), DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::domain(), domain, DGtal::DigitalSetByAssociativeContainer< TDomain, TContainer >::insert(), DGtal::Z2i::l2Metric, REQUIRE(), and SECTION().