SourceXtractorPlusPlus  0.13
Please provide a description of the project.
Public Member Functions | Private Attributes | List of all members
SourceXtractor::HilbertCurve Class Reference

#include <HilbertCurve.h>

Public Member Functions

 HilbertCurve (unsigned int size)
 
std::vector< PixelCoordinategetCurve () const
 
PixelCoordinate get2DCoordinate (unsigned int index) const
 

Private Attributes

unsigned int m_size
 

Detailed Description

Definition at line 28 of file HilbertCurve.h.

Constructor & Destructor Documentation

◆ HilbertCurve()

SourceXtractor::HilbertCurve::HilbertCurve ( unsigned int  size)
inline

Definition at line 30 of file HilbertCurve.h.

References m_size, and SourceXtractor::nextPowerOfTwo().

Here is the call graph for this function:

Member Function Documentation

◆ get2DCoordinate()

PixelCoordinate SourceXtractor::HilbertCurve::get2DCoordinate ( unsigned int  index) const
inline

Definition at line 42 of file HilbertCurve.h.

References m_size, s, std::swap(), x, and y.

Referenced by getCurve().

Here is the call graph for this function:

◆ getCurve()

std::vector<PixelCoordinate> SourceXtractor::HilbertCurve::getCurve ( ) const
inline

Definition at line 34 of file HilbertCurve.h.

References std::vector< T >::emplace_back(), get2DCoordinate(), and m_size.

Referenced by SourceXtractor::BFSSegmentation::getTiles().

Here is the call graph for this function:

Member Data Documentation

◆ m_size

unsigned int SourceXtractor::HilbertCurve::m_size
private

Definition at line 67 of file HilbertCurve.h.

Referenced by get2DCoordinate(), getCurve(), and HilbertCurve().


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