|
DGtal 1.4.0
|
#include "DGtal/topology/tables/NeighborhoodTablesGenerators.h"#include <vector>#include "DGtal/shapes/Shapes.h"#include "DGtal/io/boards/Board2D.h"#include "DGtal/io/Color.h"#include <boost/iostreams/filtering_streambuf.hpp>#include <boost/iostreams/copy.hpp>#include <boost/iostreams/filter/zlib.hpp>Go to the source code of this file.
Functions | |
| template<typename Object , typename Map > | |
| void | displaySimplicityTable (Board2D &board, const typename Object::DigitalTopology &, const Map &map) |
| template<typename Map > | |
| void | outputTableAsArray (ostream &out, const Map &map, const string &tableName) |
| int | main (int, char **) |
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/.
An example file named generateSimplicityTables2D. Creates precomputed tables for determining whether some point is simple within an object.
This file is part of the DGtal library.
Definition in file generateSimplicityTables2D.cpp.
| void displaySimplicityTable | ( | Board2D & | board, |
| const typename Object::DigitalTopology & | , | ||
| const Map & | map ) |
Given a digital topology dt and a mapping configuration -> bool map, displays the simplicity tables in the given board.
| Object | the type of object whose simpleness we wish to precompute. Includes the topology. |
| Map | the type used to store the mapping configuration -> bool. |
| board | (updated) the board where the tables are displayed. UNUSED_PARAM dt an instance of the digital topology. |
| map | the mapping configuration -> bool. |
Definition at line 65 of file generateSimplicityTables2D.cpp.
References DGtal::HyperRectDomain< TSpace >::begin(), DGtal::HyperRectDomain< TSpace >::className(), domain, and DGtal::HyperRectDomain< TSpace >::end().
Referenced by main().
| int main | ( | int | , |
| char ** | ) |
Definition at line 145 of file generateSimplicityTables2D.cpp.
References DGtal::Trace::beginBlock(), LibBoard::Board::clear(), displaySimplicityTable(), DGtal::Trace::endBlock(), DGtal::functions::generateSimplicityTable(), outputTableAsArray(), LibBoard::Board::saveEPS(), and DGtal::trace.
| void outputTableAsArray | ( | ostream & | out, |
| const Map & | map, | ||
| const string & | tableName ) |
Output simplicity configuration table as a C(++) array.
Definition at line 128 of file generateSimplicityTables2D.cpp.
Referenced by main().