tesseract  5.0.0-alpha-619-ge9db
BAND Class Reference

#include <blkocc.h>

Public Member Functions

 BAND ()=default
 
void set (int16_t new_max_max, int16_t new_max, int16_t new_min_max, int16_t new_max_min, int16_t new_min, int16_t new_min_min)
 
bool in_minimal (float y)
 
bool in_nominal (float y)
 
bool in_maximal (float y)
 
bool range_overlaps_minimal (float y1, float y2)
 
bool range_overlaps_nominal (float y1, float y2)
 
bool range_overlaps_maximal (float y1, float y2)
 
bool range_in_minimal (float y1, float y2)
 
bool range_in_nominal (float y1, float y2)
 
bool range_in_maximal (float y1, float y2)
 

Public Attributes

int16_t max_max
 
int16_t max
 
int16_t min_max
 
int16_t max_min
 
int16_t min
 
int16_t min_min
 

Detailed Description

Definition at line 116 of file blkocc.h.

Constructor & Destructor Documentation

◆ BAND()

BAND::BAND ( )
default

Member Function Documentation

◆ in_maximal()

bool BAND::in_maximal ( float  y)
inline

Definition at line 186 of file blkocc.h.

192  { //other range limit

◆ in_minimal()

bool BAND::in_minimal ( float  y)
inline

Definition at line 176 of file blkocc.h.

183  { //other range limit

◆ in_nominal()

bool BAND::in_nominal ( float  y)
inline

Definition at line 181 of file blkocc.h.

183  { //other range limit
184  if (y1 > y2)

◆ range_in_maximal()

bool BAND::range_in_maximal ( float  y1,
float  y2 
)
inline

Definition at line 236 of file blkocc.h.

◆ range_in_minimal()

bool BAND::range_in_minimal ( float  y1,
float  y2 
)
inline

Definition at line 218 of file blkocc.h.

◆ range_in_nominal()

bool BAND::range_in_nominal ( float  y1,
float  y2 
)
inline

Definition at line 227 of file blkocc.h.

◆ range_overlaps_maximal()

bool BAND::range_overlaps_maximal ( float  y1,
float  y2 
)
inline

Definition at line 210 of file blkocc.h.

210  { //other range limit
211  if (y1 > y2)
212  return RANGE_IN_BAND (max_max, min_min, y1, y2);
213  else
214  return RANGE_IN_BAND (max_max, min_min, y2, y1);
215  }
216 };

◆ range_overlaps_minimal()

bool BAND::range_overlaps_minimal ( float  y1,
float  y2 
)
inline

Definition at line 192 of file blkocc.h.

192  { //other range limit
193  if (y1 > y2)
194  return RANGE_IN_BAND (min_max, max_min, y1, y2);
195  else
196  return RANGE_IN_BAND (min_max, max_min, y2, y1);
197  }
198 

◆ range_overlaps_nominal()

bool BAND::range_overlaps_nominal ( float  y1,
float  y2 
)
inline

Definition at line 201 of file blkocc.h.

201  { //other range limit
202  if (y1 > y2)
203  return RANGE_IN_BAND (max, min, y1, y2);
204  else
205  return RANGE_IN_BAND (max, min, y2, y1);
206  }
207 

◆ set()

void BAND::set ( int16_t  new_max_max,
int16_t  new_max,
int16_t  new_min_max,
int16_t  new_max_min,
int16_t  new_min,
int16_t  new_min_min 
)
inline

Definition at line 161 of file blkocc.h.

165  { //other range limit
166  if (y1 > y2)
167  return RANGE_OVERLAPS_BAND (min_max, max_min, y1, y2);
168  else
169  return RANGE_OVERLAPS_BAND (min_max, max_min, y2, y1);
170  }
171 
172  //overlaps nom limits?
173  bool range_overlaps_nominal(float y1, //one range limit
174  float y2) { //other range limit

Member Data Documentation

◆ max

int16_t BAND::max

Definition at line 153 of file blkocc.h.

◆ max_max

int16_t BAND::max_max

Definition at line 152 of file blkocc.h.

◆ max_min

int16_t BAND::max_min

Definition at line 155 of file blkocc.h.

◆ min

int16_t BAND::min

Definition at line 156 of file blkocc.h.

◆ min_max

int16_t BAND::min_max

Definition at line 154 of file blkocc.h.

◆ min_min

int16_t BAND::min_min

Definition at line 157 of file blkocc.h.


The documentation for this class was generated from the following file:
BAND::min_min
int16_t min_min
Definition: blkocc.h:157
BAND::max_min
int16_t max_min
Definition: blkocc.h:155
BAND::min_max
int16_t min_max
Definition: blkocc.h:154
BAND::max
int16_t max
Definition: blkocc.h:153
RANGE_OVERLAPS_BAND
#define RANGE_OVERLAPS_BAND(band_max, band_min, range_max, range_min)
Definition: blkocc.h:79
BAND::min
int16_t min
Definition: blkocc.h:156
BAND::range_overlaps_nominal
bool range_overlaps_nominal(float y1, float y2)
Definition: blkocc.h:201
BAND::max_max
int16_t max_max
Definition: blkocc.h:152
RANGE_IN_BAND
#define RANGE_IN_BAND(band_max, band_min, range_max, range_min)
Definition: blkocc.h:61