DGtal 2.1.0
Loading...
Searching...
No Matches
MultiScaleAnalyzer< KSpace, N > Struct Template Reference

Public Types

typedef KSpace::Point Point
 
typedef NeighborhoodConvexityAnalyzer< KSpace, N > NCA
 
typedef std::pair< int, int > Geometry
 

Static Public Member Functions

template<typename ImagePtr >
static std::vector< Geometrymultiscale_run (const KSpace &aK, const std::vector< Point > &pts, ImagePtr bimage)
 

Detailed Description

template<typename KSpace, int N>
struct MultiScaleAnalyzer< KSpace, N >
Examples
geometry/volumes/fullConvexityAnalysis3D.cpp.

Definition at line 195 of file fullConvexityAnalysis3D.cpp.

Member Typedef Documentation

◆ Geometry

template<typename KSpace , int N>
typedef std::pair< int, int > MultiScaleAnalyzer< KSpace, N >::Geometry

◆ NCA

◆ Point

template<typename KSpace , int N>
typedef KSpace::Point MultiScaleAnalyzer< KSpace, N >::Point

Member Function Documentation

◆ multiscale_run()

template<typename KSpace , int N>
template<typename ImagePtr >
static std::vector< Geometry > MultiScaleAnalyzer< KSpace, N >::multiscale_run ( const KSpace aK,
const std::vector< Point > &  pts,
ImagePtr  bimage 
)
inlinestatic
Examples
geometry/volumes/fullConvexityAnalysis3D.cpp.

Definition at line 203 of file fullConvexityAnalysis3D.cpp.

206 {
207 auto prev_geometry
209 trace.info() << "------- Analyzing scale " << N << " --------" << std::endl;
210 std::vector< int > geom( prev_geometry.size() );
211 for ( size_t i = 0; i < geom.size(); i++ )
212 geom[ i ] = ( prev_geometry[ i ].first == N-1 ? 0x1 : 0x0 )
213 | ( prev_geometry[ i ].second == N-1 ? 0x2 : 0x0 );
214 Analyzer< KSpace, N>::run( geom, aK, pts, bimage );
215 for ( size_t i = 0; i < geom.size(); i++ ) {
216 prev_geometry[ i ].first += ( geom[ i ] & 0x1 ) ? 1 : 0;
217 prev_geometry[ i ].second += ( geom[ i ] & 0x2 ) ? 1 : 0;
218 }
219 return prev_geometry;
220 }
std::ostream & info()
Trace trace
static std::vector< int > run(const KSpace &aK, const std::vector< Point > &pts, ImagePtr bimage)
static std::vector< Geometry > multiscale_run(const KSpace &aK, const std::vector< Point > &pts, ImagePtr bimage)

References DGtal::Trace::info(), MultiScaleAnalyzer< KSpace, N >::multiscale_run(), Analyzer< KSpace, N >::run(), and DGtal::trace.

Referenced by main(), and MultiScaleAnalyzer< KSpace, N >::multiscale_run().


The documentation for this struct was generated from the following file: