DGtal 1.4.0
|
#include <iostream>
#include <iterator>
#include <cstdio>
#include <cmath>
#include <fstream>
#include <vector>
#include "DGtal/base/Common.h"
#include "DGtal/base/Exceptions.h"
#include "DGtal/kernel/SpaceND.h"
#include "DGtal/kernel/domains/HyperRectDomain.h"
#include "DGtal/geometry/curves/ArithmeticalDSSComputer.h"
#include "DGtal/io/boards/Board2D.h"
#include "DGtal/geometry/curves/CDynamicBidirectionalSegmentComputer.h"
#include "DGtal/io/boards/CDrawableWithBoard2D.h"
Go to the source code of this file.
Functions | |
bool | testDSS4drawing () |
bool | testDSS8drawing () |
bool | testExtendRetractFront () |
template<typename Iterator > | |
bool | testIsInsideForOneQuadrant (const Iterator &k, const Iterator &l, const Iterator &ite) |
bool | testIsInside () |
bool | testBIGINTEGER () |
bool | testCorner () |
void | testArithmeticalDSSComputerConceptChecking () |
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/.
This file is part of the DGtal library
Definition in file testArithmeticalDSSComputer.cpp.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 470 of file testArithmeticalDSSComputer.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testArithmeticalDSSComputerConceptChecking(), testBIGINTEGER(), testCorner(), testDSS4drawing(), testDSS8drawing(), testExtendRetractFront(), testIsInside(), and DGtal::trace.
void testArithmeticalDSSComputerConceptChecking | ( | ) |
Definition at line 461 of file testArithmeticalDSSComputer.cpp.
Referenced by main().
bool testBIGINTEGER | ( | ) |
Test for 4-connected points with big coordinates
Definition at line 378 of file testArithmeticalDSSComputer.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testCorner | ( | ) |
Test for corners in 8-connected curves (not compatible steps)
Definition at line 432 of file testArithmeticalDSSComputer.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), and DGtal::trace.
Referenced by main().
bool testDSS4drawing | ( | ) |
Test for 4-connected points
Definition at line 66 of file testArithmeticalDSSComputer.cpp.
References DGtal::Trace::beginBlock(), DGtal::HyperRectDomain< TSpace >::className(), domain, DGtal::Trace::endBlock(), DGtal::Trace::info(), LibBoard::Board::saveSVG(), LibBoard::Board::setUnit(), DGtal::trace, and LibBoard::Board::UCentimeter.
Referenced by main().
bool testDSS8drawing | ( | ) |
Test for 8-connected points
Definition at line 127 of file testArithmeticalDSSComputer.cpp.
References DGtal::Trace::beginBlock(), DGtal::HyperRectDomain< TSpace >::className(), domain, DGtal::Trace::endBlock(), DGtal::Trace::info(), LibBoard::Board::saveSVG(), LibBoard::Board::setUnit(), DGtal::trace, and LibBoard::Board::UCentimeter.
Referenced by main().
bool testExtendRetractFront | ( | ) |
checking consistency between extension and retractation.
Definition at line 182 of file testArithmeticalDSSComputer.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool testIsInside | ( | ) |
checking isDSL and isDSS methods
Definition at line 298 of file testArithmeticalDSSComputer.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testIsInsideForOneQuadrant(), and DGtal::trace.
Referenced by main().
bool testIsInsideForOneQuadrant | ( | const Iterator & | k, |
const Iterator & | l, | ||
const Iterator & | ite ) |
Definition at line 264 of file testArithmeticalDSSComputer.cpp.
References DGtal::ArithmeticalDSSComputer< TIterator, TInteger, adjacency >::init().
Referenced by testIsInside().