DGtal 1.4.0
|
#include <iostream>
#include <fstream>
#include <sstream>
#include "DGtal/kernel/SpaceND.h"
#include "DGtal/base/Common.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/geometry/curves/FreemanChain.h"
#include "DGtal/kernel/domains/HyperRectDomain.h"
#include "DGtal/io/boards/Board2D.h"
#include "ConfigTest.h"
Go to the source code of this file.
Typedefs | |
typedef SpaceND< 2, int > | Space2Type |
typedef HyperRectDomain< Space2Type > | Domain2D |
Functions | |
bool | testConstructors () |
bool | testPublicSercives () |
bool | testPointsIterators () |
bool | testCodesIterators () |
bool | testStaticServices () |
bool | testDisplay () |
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/.
Functions for testing class FreemanChain.
This file is part of the DGtal library.
Definition in file testFreemanChain.cpp.
typedef HyperRectDomain<Space2Type> Domain2D |
Definition at line 52 of file testFreemanChain.cpp.
typedef SpaceND<2,int> Space2Type |
Definition at line 51 of file testFreemanChain.cpp.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 566 of file testFreemanChain.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testCodesIterators(), testConstructors(), testDisplay(), testPointsIterators(), testPublicSercives(), testStaticServices(), and DGtal::trace.
bool testCodesIterators | ( | ) |
test codes iterators
Definition at line 280 of file testFreemanChain.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::FreemanChain< TInteger >::getCodesRange(), DGtal::Trace::info(), DGtal::FreemanChain< TInteger >::size(), and DGtal::trace.
Referenced by main().
bool testConstructors | ( | ) |
Test Constructors
Definition at line 58 of file testFreemanChain.cpp.
References DGtal::FreemanChain< TInteger >::begin(), DGtal::Trace::beginBlock(), DGtal::FreemanChain< TInteger >::end(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testDisplay | ( | ) |
testDisplay
Definition at line 518 of file testFreemanChain.cpp.
References LibBoard::Board::BoundingBox, DGtal::Color::Red, LibBoard::Board::saveCairo(), LibBoard::Board::saveEPS(), LibBoard::Board::saveFIG(), LibBoard::Board::saveSVG(), LibBoard::Board::setPenColor(), LibBoard::Board::setUnit(), and LibBoard::Board::UCentimeter.
Referenced by main().
bool testPointsIterators | ( | ) |
test iterators
Definition at line 229 of file testFreemanChain.cpp.
References DGtal::FreemanChain< TInteger >::begin(), DGtal::Trace::beginBlock(), DGtal::FreemanChain< TInteger >::end(), DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::FreemanChain< TInteger >::size(), and DGtal::trace.
Referenced by main().
bool testPublicSercives | ( | ) |
Test public services
Definition at line 113 of file testFreemanChain.cpp.
References DGtal::FreemanChain< TInteger >::begin(), DGtal::Trace::beginBlock(), DGtal::FreemanChain< TInteger >::ccwLoops(), DGtal::FreemanChain< TInteger >::code(), DGtal::FreemanChain< TInteger >::computeBoundingBox(), DGtal::Trace::endBlock(), DGtal::FreemanChain< TInteger >::extend(), DGtal::FreemanChain< TInteger >::findQuadrantChange(), DGtal::FreemanChain< TInteger >::findQuadrantChange4(), DGtal::FreemanChain< TInteger >::firstPoint(), DGtal::FreemanChain< TInteger >::getPoint(), DGtal::Trace::info(), DGtal::FreemanChain< TInteger >::isClosed(), DGtal::FreemanChain< TInteger >::lastPoint(), DGtal::FreemanChain< TInteger >::retract(), DGtal::FreemanChain< TInteger >::size(), DGtal::FreemanChain< TInteger >::subChain(), test(), DGtal::FreemanChain< TInteger >::totalDisplacement(), and DGtal::trace.
Referenced by main().
bool testStaticServices | ( | ) |
Test static services
Definition at line 333 of file testFreemanChain.cpp.
References DGtal::FreemanChain< TInteger >::addToCode(), DGtal::Trace::beginBlock(), DGtal::FreemanChain< TInteger >::cleanOuterSpikes(), DGtal::FreemanChain< TInteger >::displacement(), DGtal::Trace::endBlock(), DGtal::FreemanChain< TInteger >::getContourPoints(), DGtal::Trace::info(), DGtal::FreemanChain< TInteger >::innerContour(), DGtal::FreemanChain< TInteger >::movement(), DGtal::FreemanChain< TInteger >::movePointFromFC(), DGtal::FreemanChain< TInteger >::pointel2pixel(), DGtal::FreemanChain< TInteger >::read(), test(), DGtal::trace, and DGtal::FreemanChain< TInteger >::write().
Referenced by main().