19 #ifndef _HOUGH_NODE_GROUP_
20 #define _HOUGH_NODE_GROUP_
25 typedef unsigned short __u16;
27 typedef unsigned long long __u64;
45 #define _MAX_USEFUL_BIT_COUNT_ ((sizeof(t_hough_range) << 3)-1)
46 #define __OUT_OF_RANGE_BIT_ (((t_hough_range)0x1) << _MAX_USEFUL_BIT_COUNT_)
67 std::pair <void *, void *>
mPtr;
101 mWdim = int((max - min)/gra);
121 else if (coord >=
mWdim)
129 if (!offset)
return value;
132 int result = coord +
offset;
136 else if (result >=
mWdim)
146 if (value == 1)
return 1;
151 for(value--;
value; count++)
172 const double gra[]) {
176 for(
unsigned iq=0; iq<cdim; iq++) {
187 if (from > to || to > _imax)
return -1;
219 ret |=
mCoordDescr[iq].OffsetThisValueComponent(value, offset);
226 bool Overlap(std::pair<t_hough_range, t_hough_range>
r1,
227 std::pair<t_hough_range, t_hough_range>
r2) {
252 if (r2l > r1r || r2r < r1l)
return false;