DGtal 1.4.0
|
#include <iostream>
#include <set>
#include <algorithm>
#include "DGtal/base/Common.h"
#include "ConfigTest.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/geometry/volumes/distance/ChamferNorm2D.h"
#include "DGtal/geometry/volumes/distance/CMetricSpace.h"
#include "DGtal/geometry/volumes/distance/CSeparableMetric.h"
Go to the source code of this file.
Functions | |
bool | checkCMetricConcept () |
bool | testChamferSimple () |
bool | testBasicMasks () |
bool | testIntersection () |
bool | testShrink () |
bool | testDoubleShrink () |
bool | testDoubleShrinkHorizontal () |
bool | testHiddenBy () |
bool | testDoubleOnSegment () |
bool | testSpecialCase () |
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 ChamferDT.
This file is part of the DGtal library.
Definition in file testChamferDT.cpp.
bool checkCMetricConcept | ( | ) |
Definition at line 51 of file testChamferDT.cpp.
Referenced by main().
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 954 of file testChamferDT.cpp.
References DGtal::Trace::beginBlock(), checkCMetricConcept(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testBasicMasks(), testChamferSimple(), testDoubleOnSegment(), testDoubleShrink(), testDoubleShrinkHorizontal(), testHiddenBy(), testIntersection(), testShrink(), testSpecialCase(), and DGtal::trace.
bool testBasicMasks | ( | ) |
Definition at line 179 of file testChamferDT.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::experimental::ChamferNorm2D< TSpace >::getCone(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testChamferSimple | ( | ) |
Definition at line 59 of file testChamferDT.cpp.
References DGtal::experimental::ChamferNorm2D< TSpace >::begin(), DGtal::Trace::beginBlock(), DGtal::experimental::ChamferNorm2D< TSpace >::canonicalRay(), DGtal::experimental::ChamferNorm2D< TSpace >::end(), DGtal::Trace::endBlock(), DGtal::experimental::ChamferNorm2D< TSpace >::getCone(), DGtal::experimental::ChamferNorm2D< TSpace >::getNormalFromCone(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testDoubleOnSegment | ( | ) |
Definition at line 790 of file testChamferDT.cpp.
References DGtal::PointVector< dim, TEuclideanRing, TContainer >::begin(), DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::trace, and DGtal::Trace::warning().
Referenced by main().
bool testDoubleShrink | ( | ) |
Definition at line 419 of file testChamferDT.cpp.
References DGtal::PointVector< dim, TEuclideanRing, TContainer >::begin(), DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testDoubleShrinkHorizontal | ( | ) |
Definition at line 572 of file testChamferDT.cpp.
References DGtal::PointVector< dim, TEuclideanRing, TContainer >::begin(), DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testHiddenBy | ( | ) |
Definition at line 701 of file testChamferDT.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testIntersection | ( | ) |
Definition at line 214 of file testChamferDT.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testShrink | ( | ) |
Definition at line 289 of file testChamferDT.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::trace, and DGtal::Trace::warning().
Referenced by main().
bool testSpecialCase | ( | ) |
Definition at line 882 of file testChamferDT.cpp.
References DGtal::PointVector< dim, TEuclideanRing, TContainer >::begin(), DGtal::Trace::beginBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().