DGtal
1.5.beta
|
#include <iostream>
#include <cmath>
#include "DGtal/base/Common.h"
#include "ConfigTest.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/geometry/curves/AlphaThickSegmentComputer.h"
#include "DGtal/io/readers/PointListReader.h"
#include "DGtal/io/boards/Board2D.h"
Go to the source code of this file.
Functions | |
bool | testAlphaThickSegmentConvexHullAndBox () |
bool | testAlphaThickSegmentComputerFloatingPointContour () |
bool | testAlphaThickSegmentFreeman () |
bool | testAlphaThickSpecialInit () |
bool | testMultiWidth () |
bool | testThicknessDefinitions () |
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 AlphaThickSegmentComputer.
This file is part of the DGtal library.
Definition in file testAlphaThickSegmentComputer.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 542 of file testAlphaThickSegmentComputer.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testAlphaThickSegmentComputerFloatingPointContour(), testAlphaThickSegmentConvexHullAndBox(), testAlphaThickSegmentFreeman(), testAlphaThickSpecialInit(), testMultiWidth(), testThicknessDefinitions(), and DGtal::trace.
bool testAlphaThickSegmentComputerFloatingPointContour | ( | ) |
Test alpha thick segment with floating points.
Definition at line 196 of file testAlphaThickSegmentComputer.cpp.
References DGtal::Trace::beginBlock(), LibBoard::Board::drawLine(), DGtal::Trace::endBlock(), DGtal::Color::Gray, DGtal::Trace::info(), LibBoard::Board::saveEPS(), LibBoard::Board::setLineWidth(), LibBoard::Board::setPenColor(), and DGtal::trace.
Referenced by main().
bool testAlphaThickSegmentConvexHullAndBox | ( | ) |
Test the convexhull and box of a the alpha-thick segment computer.
Definition at line 52 of file testAlphaThickSegmentComputer.cpp.
References DGtal::Trace::beginBlock(), DGtal::Color::Blue, LibBoard::Board::drawLine(), DGtal::Trace::endBlock(), LibBoard::Board::fillCircle(), DGtal::Color::Gray, DGtal::Color::Green, DGtal::Trace::info(), DGtal::Color::Magenta, DGtal::Color::None, DGtal::Color::Purple, DGtal::Color::Red, LibBoard::Board::saveEPS(), LibBoard::Board::setLineWidth(), LibBoard::Board::setPenColor(), DGtal::trace, and DGtal::Color::Yellow.
Referenced by main().
bool testAlphaThickSegmentFreeman | ( | ) |
Test alpha thick segment computer on Freeman Chain.
Definition at line 263 of file testAlphaThickSegmentComputer.cpp.
References DGtal::FreemanChain< TInteger >::begin(), DGtal::Trace::beginBlock(), DGtal::Color::Blue, LibBoard::Board::drawCircle(), DGtal::FreemanChain< TInteger >::end(), DGtal::Trace::endBlock(), LibBoard::Board::fillCircle(), DGtal::Color::Green, DGtal::Trace::info(), LibBoard::Board::saveEPS(), LibBoard::Board::setPenColor(), and DGtal::trace.
Referenced by main().
bool testAlphaThickSpecialInit | ( | ) |
Test special cases on various initialisations.
Definition at line 331 of file testAlphaThickSegmentComputer.cpp.
References DGtal::Trace::beginBlock(), DGtal::Color::Blue, LibBoard::Board::drawLine(), DGtal::Trace::endBlock(), LibBoard::Board::fillCircle(), DGtal::Color::Green, DGtal::Trace::info(), LibBoard::Board::saveEPS(), LibBoard::Board::setPenColor(), and DGtal::trace.
Referenced by main().
bool testMultiWidth | ( | ) |
Test multi width segment computer
Definition at line 384 of file testAlphaThickSegmentComputer.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::Color::None, LibBoard::Board::saveEPS(), and DGtal::trace.
Referenced by main().
bool testThicknessDefinitions | ( | ) |
Test euclidean two thickness definitions
Definition at line 427 of file testAlphaThickSegmentComputer.cpp.
References DGtal::Trace::beginBlock(), DGtal::Color::Blue, LibBoard::Board::drawCircle(), LibBoard::Board::drawLine(), DGtal::Trace::endBlock(), DGtal::Color::Gray, DGtal::Color::Green, DGtal::Trace::info(), DGtal::Color::None, pHV, DGtal::Color::Purple, qHV, DGtal::Color::Red, LibBoard::Board::saveEPS(), LibBoard::Board::setLineWidth(), LibBoard::Board::setPenColor(), sHV, and DGtal::trace.
Referenced by main().