tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::StrideMap::Index Class Reference

#include <stridemap.h>

Collaboration diagram for tesseract::StrideMap::Index:

Public Member Functions

 Index (const StrideMap &stride_map)
 
 Index (const StrideMap &stride_map, int batch, int y, int x)
 
int t () const
 
int index (FlexDimensions dimension) const
 
void InitToFirst ()
 
void InitToLast ()
 
bool IsValid () const
 
bool IsLast (FlexDimensions dimension) const
 
int MaxIndexOfDim (FlexDimensions dim) const
 
bool AddOffset (int offset, FlexDimensions dimension)
 
bool Increment ()
 
bool Decrement ()
 

Private Member Functions

void InitToLastOfBatch (int batch)
 
void SetTFromIndices ()
 

Private Attributes

const StrideMapstride_map_
 
int t_
 
int indices_ [FD_DIMSIZE]
 

Constructor & Destructor Documentation

◆ Index() [1/2]

tesseract::StrideMap::Index::Index ( const StrideMap stride_map)
inlineexplicit

◆ Index() [2/2]

tesseract::StrideMap::Index::Index ( const StrideMap stride_map,
int  batch,
int  y,
int  x 
)
inline

Member Function Documentation

◆ AddOffset()

bool tesseract::StrideMap::Index::AddOffset ( int  offset,
FlexDimensions  dimension 
)

◆ Decrement()

bool tesseract::StrideMap::Index::Decrement ( )

◆ Increment()

bool tesseract::StrideMap::Index::Increment ( )

◆ index()

int tesseract::StrideMap::Index::index ( FlexDimensions  dimension) const
inline

◆ InitToFirst()

void tesseract::StrideMap::Index::InitToFirst ( )
inline

◆ InitToLast()

void tesseract::StrideMap::Index::InitToLast ( )
inline

◆ InitToLastOfBatch()

void tesseract::StrideMap::Index::InitToLastOfBatch ( int  batch)
private

◆ IsLast()

bool tesseract::StrideMap::Index::IsLast ( FlexDimensions  dimension) const

◆ IsValid()

bool tesseract::StrideMap::Index::IsValid ( ) const

◆ MaxIndexOfDim()

int tesseract::StrideMap::Index::MaxIndexOfDim ( FlexDimensions  dim) const

◆ SetTFromIndices()

void tesseract::StrideMap::Index::SetTFromIndices ( )
private

◆ t()

int tesseract::StrideMap::Index::t ( ) const
inline

Member Data Documentation

◆ indices_

int tesseract::StrideMap::Index::indices_[FD_DIMSIZE]
private

◆ stride_map_

const StrideMap* tesseract::StrideMap::Index::stride_map_
private

◆ t_

int tesseract::StrideMap::Index::t_
private

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