DGtal
1.5.beta
|
#include <iostream>
#include <string>
#include <iterator>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/helpers/Shortcuts.h"
#include "DGtal/topology/DigitalSurface2DSlice.h"
#include "ConfigTest.h"
#include "DGtalCatch.h"
#include "DGtal/geometry/curves/ArithmeticalDSSComputer.h"
#include "DGtal/geometry/surfaces/ArithmeticalDSSComputerOnSurfels.h"
#include "DGtal/geometry/curves/SaturatedSegmentation.h"
Go to the source code of this file.
Typedefs | |
using | KSpace = Z3i::KSpace |
using | SH3 = Shortcuts< KSpace > |
using | Surfel = KSpace::SCell |
using | SegmentComputerOnSurfels = ArithmeticalDSSComputerOnSurfels< KSpace, std::vector< Surfel >::const_iterator, int > |
using | SegmentationSurfels = SaturatedSegmentation< SegmentComputerOnSurfels > |
using | SegmentComputer = ArithmeticalDSSComputer< std::vector< Z2i::Point >::const_iterator, int, 4 > |
using | Segmentation = SaturatedSegmentation< SegmentComputer > |
Functions | |
std::pair< KSpace, Slice > | getSlice (std::string const &shape="ellipsoid", double gridstep=1.0) |
std::vector< Z2i::Point > | extractPoints (SegmentComputerOnSurfels const &sc, Slice const &slice) |
TEST_CASE ("Testing ArithmeticalDSSComputerOnSurfels") | |
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 DGtal::ArithmeticalDSSComputerOnSurfels.
This file is part of the DGtal library.
Definition in file testArithmeticalDSSComputerOnSurfels.cpp.
using KSpace = Z3i::KSpace |
Definition at line 48 of file testArithmeticalDSSComputerOnSurfels.cpp.
Definition at line 53 of file testArithmeticalDSSComputerOnSurfels.cpp.
using SegmentComputer = ArithmeticalDSSComputer<std::vector<Z2i::Point>::const_iterator, int, 4> |
using SegmentComputerOnSurfels = ArithmeticalDSSComputerOnSurfels<KSpace, std::vector<Surfel>::const_iterator, int> |
Definition at line 52 of file testArithmeticalDSSComputerOnSurfels.cpp.
using Surfel = KSpace::SCell |
Definition at line 50 of file testArithmeticalDSSComputerOnSurfels.cpp.
std::vector<Z2i::Point> extractPoints | ( | SegmentComputerOnSurfels const & | sc, |
Slice const & | slice | ||
) |
Definition at line 95 of file testArithmeticalDSSComputerOnSurfels.cpp.
References DGtal::ArithmeticalDSSComputerOnSurfels< TKSpace, TIterator, TInteger >::getNextProjectedPoint(), and DGtal::ArithmeticalDSSComputerOnSurfels< TKSpace, TIterator, TInteger >::getProjectedPointsFromSurfel().
Referenced by TEST_CASE().
std::pair<KSpace, Slice> getSlice | ( | std::string const & | shape = "ellipsoid" , |
double | gridstep = 1.0 |
||
) |
Definition at line 66 of file testArithmeticalDSSComputerOnSurfels.cpp.
References binary_image, and surface.
Referenced by TEST_CASE().
TEST_CASE | ( | "Testing ArithmeticalDSSComputerOnSurfels" | ) |
Definition at line 114 of file testArithmeticalDSSComputerOnSurfels.cpp.
References DGtal::SaturatedSegmentation< TSegmentComputer >::begin(), DGtal::SaturatedSegmentation< TSegmentComputer >::end(), extractPoints(), getSlice(), and REQUIRE().