tesseract  4.0.0-1-g2a2b
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 126 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 163 of file blkocc.h.

164  { //y value
165  return (y >= min_min) && (y < max_max);
166  }
int16_t min_min
Definition: blkocc.h:134
int16_t max_max
Definition: blkocc.h:129

◆ in_minimal()

bool BAND::in_minimal ( float  y)
inline

Definition at line 153 of file blkocc.h.

154  { //y value
155  return (y >= max_min) && (y < min_max);
156  }
int16_t min_max
Definition: blkocc.h:131
int16_t max_min
Definition: blkocc.h:132

◆ in_nominal()

bool BAND::in_nominal ( float  y)
inline

Definition at line 158 of file blkocc.h.

159  { //y value
160  return (y >= min) && (y < max);
161  }
int16_t min
Definition: blkocc.h:133
int16_t max
Definition: blkocc.h:130

◆ range_in_maximal()

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

Definition at line 213 of file blkocc.h.

215  { //other range limit
216  if (y1 > y2)
217  return RANGE_IN_BAND (max_max, min_min, y1, y2);
218  else
219  return RANGE_IN_BAND (max_max, min_min, y2, y1);
220  }
int16_t min_min
Definition: blkocc.h:134
#define RANGE_IN_BAND(band_max, band_min, range_max, range_min)
Definition: blkocc.h:68
int16_t max_max
Definition: blkocc.h:129

◆ range_in_minimal()

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

Definition at line 195 of file blkocc.h.

197  { //other range limit
198  if (y1 > y2)
199  return RANGE_IN_BAND (min_max, max_min, y1, y2);
200  else
201  return RANGE_IN_BAND (min_max, max_min, y2, y1);
202  }
int16_t min_max
Definition: blkocc.h:131
#define RANGE_IN_BAND(band_max, band_min, range_max, range_min)
Definition: blkocc.h:68
int16_t max_min
Definition: blkocc.h:132

◆ range_in_nominal()

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

Definition at line 204 of file blkocc.h.

206  { //other range limit
207  if (y1 > y2)
208  return RANGE_IN_BAND (max, min, y1, y2);
209  else
210  return RANGE_IN_BAND (max, min, y2, y1);
211  }
#define RANGE_IN_BAND(band_max, band_min, range_max, range_min)
Definition: blkocc.h:68
int16_t min
Definition: blkocc.h:133
int16_t max
Definition: blkocc.h:130

◆ range_overlaps_maximal()

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

Definition at line 187 of file blkocc.h.

188  { //other range limit
189  if (y1 > y2)
190  return RANGE_OVERLAPS_BAND (max_max, min_min, y1, y2);
191  else
192  return RANGE_OVERLAPS_BAND (max_max, min_min, y2, y1);
193  }
int16_t min_min
Definition: blkocc.h:134
int16_t max_max
Definition: blkocc.h:129
#define RANGE_OVERLAPS_BAND(band_max, band_min, range_max, range_min)
Definition: blkocc.h:87

◆ range_overlaps_minimal()

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

Definition at line 169 of file blkocc.h.

170  { //other range limit
171  if (y1 > y2)
172  return RANGE_OVERLAPS_BAND (min_max, max_min, y1, y2);
173  else
174  return RANGE_OVERLAPS_BAND (min_max, max_min, y2, y1);
175  }
int16_t min_max
Definition: blkocc.h:131
int16_t max_min
Definition: blkocc.h:132
#define RANGE_OVERLAPS_BAND(band_max, band_min, range_max, range_min)
Definition: blkocc.h:87

◆ range_overlaps_nominal()

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

Definition at line 178 of file blkocc.h.

179  { //other range limit
180  if (y1 > y2)
181  return RANGE_OVERLAPS_BAND (max, min, y1, y2);
182  else
183  return RANGE_OVERLAPS_BAND (max, min, y2, y1);
184  }
int16_t min
Definition: blkocc.h:133
#define RANGE_OVERLAPS_BAND(band_max, band_min, range_max, range_min)
Definition: blkocc.h:87
int16_t max
Definition: blkocc.h:130

◆ 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 138 of file blkocc.h.

144  { // new lower min
145  max_max = new_max_max;
146  max = new_max;
147  min_max = new_min_max;
148  max_min = new_max_min;
149  min = new_min;
150  min_min = new_min_min;
151  }
int16_t min_max
Definition: blkocc.h:131
int16_t min_min
Definition: blkocc.h:134
int16_t max_max
Definition: blkocc.h:129
int16_t max_min
Definition: blkocc.h:132
int16_t min
Definition: blkocc.h:133
int16_t max
Definition: blkocc.h:130

Member Data Documentation

◆ max

int16_t BAND::max

Definition at line 130 of file blkocc.h.

◆ max_max

int16_t BAND::max_max

Definition at line 129 of file blkocc.h.

◆ max_min

int16_t BAND::max_min

Definition at line 132 of file blkocc.h.

◆ min

int16_t BAND::min

Definition at line 133 of file blkocc.h.

◆ min_max

int16_t BAND::min_max

Definition at line 131 of file blkocc.h.

◆ min_min

int16_t BAND::min_min

Definition at line 134 of file blkocc.h.


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