DGtal
1.5.beta
|
#include <iostream>
#include <exception>
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/io/boards/Board2D.h"
#include "DGtal/geometry/curves/ArithmeticalDSS.h"
Go to the source code of this file.
Functions | |
void | exampleNaiveDSS () |
Function that illustrates the basic usage of a naive DSS. More... | |
void | exampleStandardDSS () |
Function that illustrates the basic usage of a standard DSS. More... | |
void | exampleConstructors () |
Function showing the different ways of constructing DSSs. More... | |
void | exampleUpdate () |
Function showing how a DSS can be extended and retracted. More... | |
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 exampleArithmeticalDSS.
This file is part of the DGtal library.
Definition in file exampleArithmeticalDSS.cpp.
void exampleConstructors | ( | ) |
Function showing the different ways of constructing DSSs.
[ArithmeticalDSSNaiveCtorUpperPoints]
[ArithmeticalDSSNaiveCtorUpperPoints]
[ArithmeticalDSSNaiveCtorLowerPoints]
[ArithmeticalDSSNaiveCtorLowerPoints]
[ArithmeticalDSSNaiveCtorDSL]
[ArithmeticalDSSNaiveCtorDSL]
[ArithmeticalDSSNaiveCtorDSS]
[ArithmeticalDSSNaiveCtorDSS]
[ArithmeticalDSSNaiveCtorParam]
[ArithmeticalDSSNaiveCtorParam]
[ArithmeticalDSSNaiveCtorRange]
[ArithmeticalDSSNaiveCtorRange]
Definition at line 197 of file exampleArithmeticalDSS.cpp.
References DGtal::ArithmeticalDSS< TCoordinate, TInteger, adjacency >::begin(), DGtal::Trace::beginBlock(), DGtal::ArithmeticalDSS< TCoordinate, TInteger, adjacency >::end(), DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::ArithmeticalDSS< TCoordinate, TInteger, adjacency >::isValid(), and DGtal::trace.
Referenced by main().
void exampleNaiveDSS | ( | ) |
Function that illustrates the basic usage of a naive DSS.
[ArithmeticalDSSNaiveCtor]
[ArithmeticalDSSNaiveCtor]
[ArithmeticalDSSIteration]
[ArithmeticalDSSIteration]
[NaiveDSS8DrawingUsage]
[NaiveDSS8DrawingUsage]
Definition at line 60 of file exampleArithmeticalDSS.cpp.
References DGtal::ArithmeticalDSS< TCoordinate, TInteger, adjacency >::begin(), DGtal::Trace::beginBlock(), DGtal::ArithmeticalDSS< TCoordinate, TInteger, adjacency >::className(), DGtal::HyperRectDomain< TSpace >::className(), domain, DGtal::ArithmeticalDSS< TCoordinate, TInteger, adjacency >::end(), DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::ArithmeticalDSS< TCoordinate, TInteger, adjacency >::position(), DGtal::ArithmeticalDSS< TCoordinate, TInteger, adjacency >::remainder(), LibBoard::Board::saveCairo(), LibBoard::Board::saveSVG(), and DGtal::trace.
Referenced by main().
void exampleStandardDSS | ( | ) |
Function that illustrates the basic usage of a standard DSS.
[ArithmeticalDSSStandardCtor]
[ArithmeticalDSSStandardCtor]
[StandardDSS4DrawingUsage]
[StandardDSS4DrawingUsage]
[ArithmeticalDSSDrawingUsage]
[ArithmeticalDSSDrawingUsage]
Definition at line 126 of file exampleArithmeticalDSS.cpp.
References DGtal::Trace::beginBlock(), DGtal::ArithmeticalDSS< TCoordinate, TInteger, adjacency >::className(), DGtal::HyperRectDomain< TSpace >::className(), LibBoard::Board::clear(), domain, DGtal::Trace::endBlock(), DGtal::Trace::info(), LibBoard::Board::saveCairo(), LibBoard::Board::saveSVG(), and DGtal::trace.
Referenced by main().
void exampleUpdate | ( | ) |
Function showing how a DSS can be extended and retracted.
[ArithmeticalDSSUpdateInit]
[ArithmeticalDSSUpdateInit]
[ArithmeticalDSSUpdateExtension]
[ArithmeticalDSSUpdateExtension]
[ArithmeticalDSSUpdateRetraction]
[ArithmeticalDSSUpdateRetraction]
[ArithmeticalDSSUpdateConclu]
[ArithmeticalDSSUpdateConclu]
Definition at line 270 of file exampleArithmeticalDSS.cpp.
References DGtal::Trace::beginBlock(), DGtal::ArithmeticalDSS< TCoordinate, TInteger, adjacency >::className(), DGtal::HyperRectDomain< TSpace >::className(), DGtal::PointVector< dim, TEuclideanRing, TContainer >::className(), domain, LibBoard::Board::drawArrow(), DGtal::Trace::endBlock(), DGtal::ArithmeticalDSS< TCoordinate, TInteger, adjacency >::equalsTo(), DGtal::ArithmeticalDSS< TCoordinate, TInteger, adjacency >::extendFront(), DGtal::Trace::info(), DGtal::ArithmeticalDSS< TCoordinate, TInteger, adjacency >::isValid(), DGtal::ArithmeticalDSS< TCoordinate, TInteger, adjacency >::retractFront(), LibBoard::Board::saveCairo(), LibBoard::Board::saveSVG(), and DGtal::trace.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 378 of file exampleArithmeticalDSS.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), exampleConstructors(), exampleNaiveDSS(), exampleStandardDSS(), exampleUpdate(), DGtal::Trace::info(), and DGtal::trace.