DGtal 1.3.0
|
#include <iostream>
#include "DGtal/base/Common.h"
#include "DGtal/io/boards/Board2D.h"
#include "DGtal/io/colormaps/GradientColorMap.h"
#include "DGtal/kernel/sets/DigitalSetSelector.h"
#include "DGtal/shapes/GaussDigitizer.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/shapes/parametric/Ball2D.h"
#include "DGtal/shapes/parametric/Astroid2D.h"
#include "DGtal/shapes/parametric/Ellipse2D.h"
#include "DGtal/shapes/parametric/Flower2D.h"
#include "DGtal/shapes/parametric/Lemniscate2D.h"
#include "DGtal/shapes/Shapes.h"
#include "DGtal/topology/helpers/Surfaces.h"
#include "DGtal/geometry/curves/GridCurve.h"
#include "DGtal/shapes/CDigitalOrientedShape.h"
#include "DGtal/shapes/CDigitalBoundedShape.h"
Go to the source code of this file.
Functions | |
bool | testConcept () |
template<typename Space , typename Shape > | |
bool | testDigitization (const Shape &aShape, double h, const string &fileName) |
bool | testGaussDigitizer () |
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 GaussDigitizer.
This file is part of the DGtal library.
Definition in file testGaussDigitizer.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 220 of file testGaussDigitizer.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testConcept(), testGaussDigitizer(), and DGtal::trace.
bool testConcept | ( | ) |
Gaussdigitizer is a model of CDigitalBoundedShape and CDigitalOrientedShape.
Definition at line 65 of file testGaussDigitizer.cpp.
Referenced by main().
bool testDigitization | ( | const Shape & | aShape, |
double | h, | ||
const string & | fileName | ||
) |
Definition at line 76 of file testGaussDigitizer.cpp.
References DGtal::GaussDigitizer< TSpace, TEuclideanShape >::attach(), DGtal::BIG_DS, DGtal::GridCurve< TKSpace >::className(), DGtal::HyperRectDomain< TSpace >::className(), DGtal::SignedKhalimskyCell< dim, TInteger >::className(), DGtal::Shapes< TDomain >::digitalShaper(), domain, DGtal::Surfaces< TKSpace >::findABel(), DGtal::GaussDigitizer< TSpace, TEuclideanShape >::getDomain(), DGtal::GaussDigitizer< TSpace, TEuclideanShape >::getLowerBound(), DGtal::Astroid2D< TSpace >::getLowerBound(), DGtal::GaussDigitizer< TSpace, TEuclideanShape >::getUpperBound(), DGtal::Astroid2D< TSpace >::getUpperBound(), DGtal::HIGH_BEL_DS, DGtal::HIGH_ITER_DS, DGtal::KhalimskySpaceND< dim, TInteger >::init(), DGtal::GaussDigitizer< TSpace, TEuclideanShape >::init(), DGtal::GridCurve< TKSpace >::initFromVector(), K, LibBoard::Board::saveEPS(), LibBoard::Board::saveSVG(), LibBoard::Board::setUnit(), DGtal::Surfaces< TKSpace >::track2DBoundaryPoints(), and LibBoard::Board::UCentimeter.
bool testGaussDigitizer | ( | ) |
Example of a test. To be completed.
Definition at line 143 of file testGaussDigitizer.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().