DGtal
1.5.beta
|
#include <iostream>
#include "DGtal/base/Common.h"
#include "ConfigTest.h"
#include "DGtalCatch.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/geometry/tools/Hull2DHelpers.h"
#include "DGtal/geometry/tools/determinant/InHalfPlaneBySimple3x3Matrix.h"
Go to the source code of this file.
Typedefs | |
typedef InHalfPlaneBySimple3x3Matrix< Point, DGtal::int64_t > | Functor |
Functions | |
ch | add (Point(0, 0)) |
ch | add (Point(1, 0)) |
ch | add (Point(1, 1)) |
SECTION ("Testing computation of horizontal/vertical thickness of ConvexHull2D") | |
SECTION ("Testing computation of euclidean thickness of ConvexHull2D") | |
ch | add (Point(104.0, 54.2)) |
ch | add (Point(104.2, 53.2)) |
ch | add (Point(103.2, 53.4)) |
ch | add (Point(103.3, 52.3)) |
ch | add (Point(102.3, 52.3)) |
ch | add (Point(102.2, 51.0)) |
ch | add (Point(102.2, 50.2)) |
ch | add (Point(101.0, 50.0)) |
ch | add (Point(101.0, 49.1)) |
ch | add (Point(101.2, 48.2)) |
ch | add (Point(100.0, 48.2)) |
ch | add (Point(100.4, 47.4)) |
CAPTURE (thicknessHV) | |
CAPTURE (thicknessE) | |
SECTION ("Testing antipodal points of ConvexHull2D") | |
ch | reverse () |
CAPTURE (thicknessEb) | |
SECTION ("Testing same antipodal points after hull reversing ") | |
Variables | |
DGtal::MelkmanConvexHull< Point, Functor > | ch |
Point | pHV |
Point | qHV |
Point | sHV |
Point | pE |
Point | qE |
Point | sE |
double | thicknessHV |
double | thicknessEucl |
const double | thicknessE |
const double | thicknessEb |
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 ConvexHull2D-catch.
This file is part of the DGtal library.
Definition in file testConvexHull2DThickness.cpp.
typedef InHalfPlaneBySimple3x3Matrix<Point, double> Functor |
Definition at line 52 of file testConvexHull2DThickness.cpp.
CAPTURE | ( | thicknessE | ) |
CAPTURE | ( | thicknessEb | ) |
CAPTURE | ( | thicknessHV | ) |
ch reverse | ( | ) |
SECTION | ( | "Testing antipodal points of ConvexHull2D" | ) |
Definition at line 120 of file testConvexHull2DThickness.cpp.
SECTION | ( | "Testing computation of euclidean thickness of ConvexHull2D" | ) |
Definition at line 78 of file testConvexHull2DThickness.cpp.
References pE, qE, REQUIRE(), sE, and thicknessEucl.
SECTION | ( | "Testing computation of horizontal/vertical thickness of ConvexHull2D" | ) |
Definition at line 69 of file testConvexHull2DThickness.cpp.
References pHV, qHV, REQUIRE(), sHV, and thicknessHV.
SECTION | ( | "Testing same antipodal points after hull reversing " | ) |
Definition at line 53 of file testConvexHull2DThickness.cpp.
Point pE |
Definition at line 58 of file testConvexHull2DThickness.cpp.
Referenced by SECTION().
Point pHV |
Definition at line 58 of file testConvexHull2DThickness.cpp.
Referenced by SECTION().
Point qE |
Definition at line 58 of file testConvexHull2DThickness.cpp.
Referenced by SECTION().
Point qHV |
Definition at line 58 of file testConvexHull2DThickness.cpp.
Referenced by SECTION().
Point sE |
Definition at line 58 of file testConvexHull2DThickness.cpp.
Referenced by SECTION().
Point sHV |
Definition at line 58 of file testConvexHull2DThickness.cpp.
Referenced by SECTION().
const double thicknessE |
Definition at line 113 of file testConvexHull2DThickness.cpp.
const double thicknessEb |
Definition at line 134 of file testConvexHull2DThickness.cpp.
double thicknessEucl |
Definition at line 64 of file testConvexHull2DThickness.cpp.
Referenced by SECTION().
const double thicknessHV |
Definition at line 59 of file testConvexHull2DThickness.cpp.
Referenced by SECTION().