tesseract  3.05.02
BAND Class Reference

#include <blkocc.h>

Public Member Functions

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

Public Attributes

inT16 max_max
 
inT16 max
 
inT16 min_max
 
inT16 max_min
 
inT16 min
 
inT16 min_min
 

Detailed Description

Definition at line 126 of file blkocc.h.

Constructor & Destructor Documentation

◆ BAND()

BAND::BAND ( )
inline

Definition at line 136 of file blkocc.h.

136  {
137  } // constructor

Member Function Documentation

◆ in_maximal()

BOOL8 BAND::in_maximal ( float  y)
inline

Definition at line 170 of file blkocc.h.

171  { //y value
172  if ((y >= min_min) && (y < max_max))
173  return TRUE;
174  else
175  return FALSE;
176  }
#define TRUE
Definition: capi.h:45
inT16 min_min
Definition: blkocc.h:134
#define FALSE
Definition: capi.h:46
inT16 max_max
Definition: blkocc.h:129

◆ in_minimal()

BOOL8 BAND::in_minimal ( float  y)
inline

Definition at line 154 of file blkocc.h.

155  { //y value
156  if ((y >= max_min) && (y < min_max))
157  return TRUE;
158  else
159  return FALSE;
160  }
#define TRUE
Definition: capi.h:45
inT16 max_min
Definition: blkocc.h:132
#define FALSE
Definition: capi.h:46
inT16 min_max
Definition: blkocc.h:131

◆ in_nominal()

BOOL8 BAND::in_nominal ( float  y)
inline

Definition at line 162 of file blkocc.h.

163  { //y value
164  if ((y >= min) && (y < max))
165  return TRUE;
166  else
167  return FALSE;
168  }
#define TRUE
Definition: capi.h:45
#define FALSE
Definition: capi.h:46
inT16 min
Definition: blkocc.h:133
inT16 max
Definition: blkocc.h:130

◆ range_in_maximal()

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

Definition at line 223 of file blkocc.h.

225  { //other range limit
226  if (y1 > y2)
227  return RANGE_IN_BAND (max_max, min_min, y1, y2);
228  else
229  return RANGE_IN_BAND (max_max, min_min, y2, y1);
230  }
#define RANGE_IN_BAND(band_max, band_min, range_max, range_min)
Definition: blkocc.h:68
inT16 min_min
Definition: blkocc.h:134
inT16 max_max
Definition: blkocc.h:129

◆ range_in_minimal()

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

Definition at line 205 of file blkocc.h.

207  { //other range limit
208  if (y1 > y2)
209  return RANGE_IN_BAND (min_max, max_min, y1, y2);
210  else
211  return RANGE_IN_BAND (min_max, max_min, y2, y1);
212  }
#define RANGE_IN_BAND(band_max, band_min, range_max, range_min)
Definition: blkocc.h:68
inT16 max_min
Definition: blkocc.h:132
inT16 min_max
Definition: blkocc.h:131

◆ range_in_nominal()

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

Definition at line 214 of file blkocc.h.

216  { //other range limit
217  if (y1 > y2)
218  return RANGE_IN_BAND (max, min, y1, y2);
219  else
220  return RANGE_IN_BAND (max, min, y2, y1);
221  }
#define RANGE_IN_BAND(band_max, band_min, range_max, range_min)
Definition: blkocc.h:68
inT16 min
Definition: blkocc.h:133
inT16 max
Definition: blkocc.h:130

◆ range_overlaps_maximal()

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

Definition at line 197 of file blkocc.h.

198  { //other range limit
199  if (y1 > y2)
200  return RANGE_OVERLAPS_BAND (max_max, min_min, y1, y2);
201  else
202  return RANGE_OVERLAPS_BAND (max_max, min_min, y2, y1);
203  }
inT16 min_min
Definition: blkocc.h:134
#define RANGE_OVERLAPS_BAND(band_max, band_min, range_max, range_min)
Definition: blkocc.h:87
inT16 max_max
Definition: blkocc.h:129

◆ range_overlaps_minimal()

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

Definition at line 179 of file blkocc.h.

180  { //other range limit
181  if (y1 > y2)
182  return RANGE_OVERLAPS_BAND (min_max, max_min, y1, y2);
183  else
184  return RANGE_OVERLAPS_BAND (min_max, max_min, y2, y1);
185  }
inT16 max_min
Definition: blkocc.h:132
#define RANGE_OVERLAPS_BAND(band_max, band_min, range_max, range_min)
Definition: blkocc.h:87
inT16 min_max
Definition: blkocc.h:131

◆ range_overlaps_nominal()

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

Definition at line 188 of file blkocc.h.

189  { //other range limit
190  if (y1 > y2)
191  return RANGE_OVERLAPS_BAND (max, min, y1, y2);
192  else
193  return RANGE_OVERLAPS_BAND (max, min, y2, y1);
194  }
#define RANGE_OVERLAPS_BAND(band_max, band_min, range_max, range_min)
Definition: blkocc.h:87
inT16 min
Definition: blkocc.h:133
inT16 max
Definition: blkocc.h:130

◆ set()

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

Definition at line 139 of file blkocc.h.

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

Member Data Documentation

◆ max

inT16 BAND::max

Definition at line 130 of file blkocc.h.

◆ max_max

inT16 BAND::max_max

Definition at line 129 of file blkocc.h.

◆ max_min

inT16 BAND::max_min

Definition at line 132 of file blkocc.h.

◆ min

inT16 BAND::min

Definition at line 133 of file blkocc.h.

◆ min_max

inT16 BAND::min_max

Definition at line 131 of file blkocc.h.

◆ min_min

inT16 BAND::min_min

Definition at line 134 of file blkocc.h.


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