DGtal
1.5.beta
|
#include <iostream>
#include "ConfigExamples.h"
#include "DGtal/helpers/StdDefs.h"
#include "DGtal/base/Common.h"
#include "DGtal/geometry/surfaces/estimation/MaximalSegmentSliceEstimation.h"
#include "DGtal/helpers/Shortcuts.h"
#include "DGtal/io/viewers/Viewer3D.h"
Go to the source code of this file.
Typedefs | |
using | KSpace = Z3i::KSpace |
using | SH3 = Shortcuts< KSpace > |
using | Surface = SH3::DigitalSurface |
using | Surfel = Surface::Surfel |
using | RealPoint = SH3::RealPoint |
using | Point = SH3::Point |
Functions | |
RealPoint | centerSurfel (KSpace const &K, SH3::SCell const &s) |
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/.
An example file that shows how to construct and use a DGtal::MaximalSegmentSliceEstimation on a digital surface.
This file is part of the DGtal library.
Definition in file exampleMaximalSegmentSliceEstimation.cpp.
using KSpace = Z3i::KSpace |
Definition at line 43 of file exampleMaximalSegmentSliceEstimation.cpp.
using Point = SH3::Point |
Definition at line 48 of file exampleMaximalSegmentSliceEstimation.cpp.
using RealPoint = SH3::RealPoint |
Definition at line 47 of file exampleMaximalSegmentSliceEstimation.cpp.
Definition at line 44 of file exampleMaximalSegmentSliceEstimation.cpp.
using Surface = SH3::DigitalSurface |
Definition at line 45 of file exampleMaximalSegmentSliceEstimation.cpp.
using Surfel = Surface::Surfel |
Definition at line 46 of file exampleMaximalSegmentSliceEstimation.cpp.
RealPoint centerSurfel | ( | KSpace const & | K, |
SH3::SCell const & | s | ||
) |
Definition at line 50 of file exampleMaximalSegmentSliceEstimation.cpp.
References K, and DGtal::KhalimskySpaceND< dim, TInteger >::uCoords().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
[MaximalSegmentSliceEstimationConstructionUsage]
[MaximalSegmentSliceEstimationConstructionUsage]
Definition at line 65 of file exampleMaximalSegmentSliceEstimation.cpp.
References binary_image, centerSurfel(), DGtal::PointVector< dim, TEuclideanRing, TContainer >::getNormalized(), K, and surface.