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

#include <stridemap.h>

Collaboration diagram for tesseract::StrideMap:

Classes

class  Index
 

Public Member Functions

 StrideMap ()
 
void SetStride (const std::vector< std::pair< int, int >> &h_w_pairs)
 
void ScaleXY (int x_factor, int y_factor)
 
void ReduceWidthTo1 ()
 
void TransposeXY ()
 
int Size (FlexDimensions dimension) const
 
int Width () const
 

Private Member Functions

void ComputeTIncrements ()
 

Private Attributes

int shape_ [FD_DIMSIZE]
 
int t_increments_ [FD_DIMSIZE]
 
std::vector< int > heights_
 
std::vector< int > widths_
 

Constructor & Destructor Documentation

◆ StrideMap()

tesseract::StrideMap::StrideMap ( )
inline

Member Function Documentation

◆ ComputeTIncrements()

void tesseract::StrideMap::ComputeTIncrements ( )
private

◆ ReduceWidthTo1()

void tesseract::StrideMap::ReduceWidthTo1 ( )

◆ ScaleXY()

void tesseract::StrideMap::ScaleXY ( int  x_factor,
int  y_factor 
)

◆ SetStride()

void tesseract::StrideMap::SetStride ( const std::vector< std::pair< int, int >> &  h_w_pairs)

◆ Size()

int tesseract::StrideMap::Size ( FlexDimensions  dimension) const
inline

◆ TransposeXY()

void tesseract::StrideMap::TransposeXY ( )

◆ Width()

int tesseract::StrideMap::Width ( ) const
inline

Member Data Documentation

◆ heights_

std::vector<int> tesseract::StrideMap::heights_
private

◆ shape_

int tesseract::StrideMap::shape_[FD_DIMSIZE]
private

◆ t_increments_

int tesseract::StrideMap::t_increments_[FD_DIMSIZE]
private

◆ widths_

std::vector<int> tesseract::StrideMap::widths_
private

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