DGtal 1.3.0
Loading...
Searching...
No Matches
Functions
testDigitalPlanePredicate.cpp File Reference
#include <iostream>
#include "DGtal/base/Common.h"
#include "ConfigTest.h"
#include "DGtalCatch.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/geometry/surfaces/DigitalPlanePredicate.h"

Go to the source code of this file.

Functions

 TEST_CASE ("Testing DigitalPlanePredicate")
 

Detailed Description

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/.

Author
Jocelyn Meyron (jocel.nosp@m.yn.m.nosp@m.eyron.nosp@m.@lir.nosp@m.is.cn.nosp@m.rs.f.nosp@m.r ) Laboratoire d'InfoRmatique en Image et Systemes d'information - LIRIS (CNRS, UMR 5205), CNRS, France
Date
2020/12/03

Functions for testing class DGtal::DigitalPlanePredicate.

This file is part of the DGtal library.

Definition in file testDigitalPlanePredicate.cpp.

Function Documentation

◆ TEST_CASE()

TEST_CASE ( "Testing DigitalPlanePredicate"  )

Definition at line 46 of file testDigitalPlanePredicate.cpp.

47{
51
52 Vector n(2, 6, 15);
53 DigitalPlane standardPlane(n, 0, n.norm1());
54
55 SECTION("Testing operator() of DigitalPlanePredicate")
56 {
57 REQUIRE(standardPlane(Point(0, 0, 0)));
58 REQUIRE(standardPlane(Point(1, 0, 0)));
59 REQUIRE(standardPlane(Point(0, 1, 0)));
60 REQUIRE(standardPlane(Point(0, 0, 1)));
61 REQUIRE(! standardPlane(Point(1, 1, 1)));
62 }
63}
Aim: Representing digital planes, which are digitizations of Euclidean planes, as point predicates.
MyPointD Point
Definition: testClone2.cpp:383
FreemanChain< int >::Vector Vector
SECTION("Testing constant forward iterators")
REQUIRE(domain.isInside(aPoint))

References REQUIRE(), and SECTION().