tesseract v5.3.3.20231005
tesseract::ShapeDist Struct Reference

#include <mastertrainer.h>

Public Member Functions

 ShapeDist ()
 
 ShapeDist (int s1, int s2, float dist)
 
bool operator< (const ShapeDist &other) const
 

Public Attributes

int shape1
 
int shape2
 
float distance
 

Detailed Description

Definition at line 48 of file mastertrainer.h.

Constructor & Destructor Documentation

◆ ShapeDist() [1/2]

tesseract::ShapeDist::ShapeDist ( )
inline

Definition at line 49 of file mastertrainer.h.

◆ ShapeDist() [2/2]

tesseract::ShapeDist::ShapeDist ( int  s1,
int  s2,
float  dist 
)
inline

Definition at line 50 of file mastertrainer.h.

50: shape1(s1), shape2(s2), distance(dist) {}

Member Function Documentation

◆ operator<()

bool tesseract::ShapeDist::operator< ( const ShapeDist other) const
inline

Definition at line 53 of file mastertrainer.h.

53 {
54 return distance < other.distance;
55 }

Member Data Documentation

◆ distance

float tesseract::ShapeDist::distance

Definition at line 59 of file mastertrainer.h.

◆ shape1

int tesseract::ShapeDist::shape1

Definition at line 57 of file mastertrainer.h.

◆ shape2

int tesseract::ShapeDist::shape2

Definition at line 58 of file mastertrainer.h.


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