DGtal
1.5.beta
|
#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.
void draw | ( | const Iterator & | itb, |
const Iterator & | ite, | ||
Board & | aBoard | ||
) |
Drawing a segmentation
Definition at line 75 of file testSegmentation.cpp.
Referenced by main().
void drawCCP | ( | const Iterator & | itb, |
const Iterator & | ite, | ||
Board & | aBoard | ||
) |
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.
bool greedySegmentationVisualTest | ( | ) |
Simple visual test
Definition at line 200 of file testSegmentation.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), LibBoard::Board::saveEPS(), and DGtal::trace.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 942 of file testSegmentation.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), greedySegmentationVisualTest(), DGtal::Trace::info(), SaturatedSegmentationTest(), SaturatedSegmentationVisualTest(), and DGtal::trace.
bool SaturatedSegmentationTest | ( | ) |
Simple visual test
Definition at line 890 of file testSegmentation.cpp.
References DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::begin(), DGtal::Trace::beginBlock(), DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::end(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool SaturatedSegmentationVisualTest | ( | ) |
Simple visual test
Definition at line 549 of file testSegmentation.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), LibBoard::Board::saveEPS(), 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 >::SegmentComputerIterator::begin(), and DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::end().
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 >::SegmentComputerIterator::begin(), and DGtal::SaturatedSegmentation< TSegmentComputer >::SegmentComputerIterator::end().