DGtal
1.5.beta
|
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/base/IteratorCirculatorTraits.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/geometry/tools/Hull2DHelpers.h"
#include "DGtal/geometry/tools/PolarPointComparatorBy2x2DetComputer.h"
#include "DGtal/geometry/tools/determinant/AvnaimEtAl2x2DetSignComputer.h"
#include "DGtal/geometry/tools/determinant/InHalfPlaneBySimple3x3Matrix.h"
#include "DGtal/geometry/tools/determinant/InGeneralizedDiskOfGivenRadius.h"
#include "DGtal/shapes/ShapeFactory.h"
#include "DGtal/shapes/Shapes.h"
#include "DGtal/topology/DigitalSetBoundary.h"
#include "DGtal/topology/DigitalSurface.h"
#include "DGtal/graph/DepthFirstVisitor.h"
#include "DGtal/io/boards/Board2D.h"
Go to the source code of this file.
Functions | |
template<typename ForwardIterator , typename Board > | |
void | drawPolygon (const ForwardIterator &itb, const ForwardIterator &ite, Board &aBoard, bool isClosed=true) |
void | alphaShape () |
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/.
An example file named exampleAlphaShape.
This file is part of the DGtal library.
Definition in file exampleAlphaShape.cpp.
void alphaShape | ( | ) |
Algorithms that computes the alpha-shape of a point set
[Hull2D-RadiusPredicateInf]
[Hull2D-RadiusPredicateInf]
[Hull2D-ClosedGrahamScan]
[Hull2D-ClosedGrahamScan]
[Hull2D-RadiusPredicateM1]
[Hull2D-RadiusPredicateM1]
[Hull2D-RadiusPredicateMsqrt5]
[Hull2D-RadiusPredicateMsqrt5]
[Hull2D-RadiusPredicateM5]
[Hull2D-RadiusPredicateM5]
[Hull2D-RadiusPredicateP8]
[Hull2D-RadiusPredicateP8]
[Hull2D-RadiusPredicateP9]
[Hull2D-RadiusPredicateP9]
Definition at line 123 of file exampleAlphaShape.cpp.
References domain, drawPolygon(), DGtal::GridCurve< TKSpace >::getInnerPointsRange(), DGtal::Ball2D< TSpace >::getLowerBound(), DGtal::Ball2D< TSpace >::getUpperBound(), DGtal::Trace::info(), DGtal::KhalimskySpaceND< dim, TInteger >::init(), DGtal::HyperRectDomain< TSpace >::lowerBound(), DGtal::GridCurve< TKSpace >::pushBack(), LibBoard::Board::saveCairo(), LibBoard::Board::saveSVG(), DGtal::trace, and DGtal::HyperRectDomain< TSpace >::upperBound().
Referenced by main().
void drawPolygon | ( | const ForwardIterator & | itb, |
const ForwardIterator & | ite, | ||
Board & | aBoard, | ||
bool | isClosed = true |
||
) |
Definition at line 79 of file exampleAlphaShape.cpp.
Referenced by alphaShape().
int main | ( | int | argc, |
char ** | argv | ||
) |
Main procedure. Draw the convex hull and alpha-shape (for several values of alpha) of a point set coming from the digitization of a disk.
argc | number of arguments |
argv | array of arguments |
Definition at line 339 of file exampleAlphaShape.cpp.
References alphaShape(), DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.