|
DGtal 2.0.0
|
#include <cstdio>#include <cmath>#include <fstream>#include <vector>#include <iostream>#include <iterator>#include "DGtal/base/Common.h"#include "DGtal/base/Exceptions.h"#include "DGtal/io/boards/Board2D.h"#include "DGtal/io/Color.h"#include "DGtal/base/Circulator.h"#include "DGtal/geometry/curves/ArithmeticalDSSComputer.h"#include "DGtal/geometry/curves/FreemanChain.h"#include "DGtal/geometry/curves/GreedySegmentation.h"#include "DGtal/geometry/curves/SaturatedSegmentation.h"#include "ConfigTest.h"Go to the source code of this file.
Functions | |
| template<typename Iterator, typename Board> | |
| void | draw (const Iterator &itb, const Iterator &ite, Board &aBoard) |
| template<typename Iterator, typename Board> | |
| void | drawCCP (const Iterator &itb, const Iterator &ite, Board &aBoard) |
| template<typename Iterator, typename Board> | |
| void | segmentationIntoDSSs (const Iterator &itb, const Iterator &ite, const Iterator &sitb, const Iterator &site, const string &aMode, Board &aBoard) |
| template<typename Iterator, typename Board> | |
| void | segmentationIntoMaximalDSSs (const Iterator &itb, const Iterator &ite, const Iterator &sitb, const Iterator &site, const string &aMode, Board &aBoard) |
| bool | greedySegmentationVisualTest () |
| bool | SaturatedSegmentationVisualTest () |
| bool | SaturatedSegmentationTest () |
| 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 testSegmentation.cpp.
Drawing a segmentation
Definition at line 75 of file testSegmentation.cpp.
Referenced by segmentationIntoDSSs().
Drawing a segmentation
Definition at line 93 of file testSegmentation.cpp.
References DGtal::Color::Black, DGtal::Color::Blue, DGtal::Color::Green, DGtal::Color::Red, and DGtal::Color::Yellow.
Referenced by segmentationIntoMaximalDSSs().
| bool greedySegmentationVisualTest | ( | ) |
Simple visual test
Definition at line 200 of file testSegmentation.cpp.
References DGtal::GridCurve< TKSpace >::begin(), LibBoard::Board::saveEPS(), segmentationIntoDSSs(), and DGtal::trace.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 942 of file testSegmentation.cpp.
References greedySegmentationVisualTest(), SaturatedSegmentationTest(), SaturatedSegmentationVisualTest(), and DGtal::trace.
| bool SaturatedSegmentationTest | ( | ) |
Simple visual test
Definition at line 890 of file testSegmentation.cpp.
References DGtal::SaturatedSegmentation< TSegmentComputer >::begin(), DGtal::SaturatedSegmentation< TSegmentComputer >::end(), DGtal::SaturatedSegmentation< TSegmentComputer >::setMode(), and DGtal::trace.
Referenced by main().
| bool SaturatedSegmentationVisualTest | ( | ) |
Simple visual test
Definition at line 549 of file testSegmentation.cpp.
References DGtal::GridCurve< TKSpace >::begin(), LibBoard::Board::saveEPS(), segmentationIntoMaximalDSSs(), and DGtal::trace.
Referenced by main().
| void segmentationIntoDSSs | ( | const Iterator & | itb, |
| const Iterator & | ite, | ||
| const Iterator & | sitb, | ||
| const Iterator & | site, | ||
| const string & | aMode, | ||
| Board & | aBoard ) |
Greedy segmentation of a (sub)range
Definition at line 150 of file testSegmentation.cpp.
References DGtal::SaturatedSegmentation< TSegmentComputer >::begin(), draw(), DGtal::SaturatedSegmentation< TSegmentComputer >::end(), DGtal::SaturatedSegmentation< TSegmentComputer >::setMode(), and DGtal::SaturatedSegmentation< TSegmentComputer >::setSubRange().
Referenced by greedySegmentationVisualTest().
| void segmentationIntoMaximalDSSs | ( | const Iterator & | itb, |
| const Iterator & | ite, | ||
| const Iterator & | sitb, | ||
| const Iterator & | site, | ||
| const string & | aMode, | ||
| Board & | aBoard ) |
saturated segmentation of a (sub)range
Definition at line 175 of file testSegmentation.cpp.
References DGtal::SaturatedSegmentation< TSegmentComputer >::begin(), drawCCP(), DGtal::SaturatedSegmentation< TSegmentComputer >::end(), DGtal::SaturatedSegmentation< TSegmentComputer >::setMode(), and DGtal::SaturatedSegmentation< TSegmentComputer >::setSubRange().
Referenced by SaturatedSegmentationVisualTest().