tesseract  4.00.00dev
tesseract::StaticShape Class Reference

#include <static_shape.h>

Public Member Functions

 StaticShape ()
 
int batch () const
 
void set_batch (int value)
 
int height () const
 
void set_height (int value)
 
int width () const
 
void set_width (int value)
 
int depth () const
 
void set_depth (int value)
 
LossType loss_type () const
 
void set_loss_type (LossType value)
 
void SetShape (int batch, int height, int width, int depth)
 
void Print () const
 

Detailed Description

Definition at line 36 of file static_shape.h.

Constructor & Destructor Documentation

◆ StaticShape()

tesseract::StaticShape::StaticShape ( )
inline

Definition at line 38 of file static_shape.h.

39  : batch_(0), height_(0), width_(0), depth_(0), loss_type_(LT_NONE) {}

Member Function Documentation

◆ batch()

int tesseract::StaticShape::batch ( ) const
inline

Definition at line 40 of file static_shape.h.

40 { return batch_; }

◆ depth()

int tesseract::StaticShape::depth ( ) const
inline

Definition at line 46 of file static_shape.h.

46 { return depth_; }

◆ height()

int tesseract::StaticShape::height ( ) const
inline

Definition at line 42 of file static_shape.h.

42 { return height_; }

◆ loss_type()

LossType tesseract::StaticShape::loss_type ( ) const
inline

Definition at line 48 of file static_shape.h.

48 { return loss_type_; }

◆ Print()

void tesseract::StaticShape::Print ( ) const
inline

Definition at line 57 of file static_shape.h.

57  {
58  tprintf("Batch=%d, Height=%d, Width=%d, Depth=%d, loss=%d\n", batch_,
59  height_, width_, depth_, loss_type_);
60  }
#define tprintf(...)
Definition: tprintf.h:31

◆ set_batch()

void tesseract::StaticShape::set_batch ( int  value)
inline

Definition at line 41 of file static_shape.h.

41 { batch_ = value; }

◆ set_depth()

void tesseract::StaticShape::set_depth ( int  value)
inline

Definition at line 47 of file static_shape.h.

47 { depth_ = value; }

◆ set_height()

void tesseract::StaticShape::set_height ( int  value)
inline

Definition at line 43 of file static_shape.h.

43 { height_ = value; }

◆ set_loss_type()

void tesseract::StaticShape::set_loss_type ( LossType  value)
inline

Definition at line 49 of file static_shape.h.

49 { loss_type_ = value; }

◆ set_width()

void tesseract::StaticShape::set_width ( int  value)
inline

Definition at line 45 of file static_shape.h.

45 { width_ = value; }

◆ SetShape()

void tesseract::StaticShape::SetShape ( int  batch,
int  height,
int  width,
int  depth 
)
inline

Definition at line 50 of file static_shape.h.

50  {
51  batch_ = batch;
52  height_ = height;
53  width_ = width;
54  depth_ = depth;
55  }

◆ width()

int tesseract::StaticShape::width ( ) const
inline

Definition at line 44 of file static_shape.h.

44 { return width_; }

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