Home
last modified time | relevance | path

Searched refs:radang (Results 1 – 6 of 6) sorted by relevance

/external/tesseract/liblept/
Dshear.c47 static l_float32 normalizeAngleForShear(l_float32 radang, l_float32 mindist);
99 l_float32 radang, in pixHShear() argument
116 pixHShearIP(pixd, liney, radang, incolor); in pixHShear()
129 radang = normalizeAngleForShear(radang, MIN_DIFF_FROM_HALF_PI); in pixHShear()
130 if (radang == 0.0 || tan(radang) == 0.0) in pixHShear()
137 sign = L_SIGN(radang); in pixHShear()
138 tanangle = tan(radang); in pixHShear()
214 l_float32 radang, in pixVShear() argument
231 pixVShearIP(pixd, linex, radang, incolor); in pixVShear()
244 radang = normalizeAngleForShear(radang, MIN_DIFF_FROM_HALF_PI); in pixVShear()
[all …]
Dsel2.c341 l_float64 pi, halfpi, radincr, radang; in selaAddCrossJunctions() local
378 radang = (l_float32)i * radincr; in selaAddCrossJunctions()
379 pta1 = generatePtaLineFromPt(xc, yc, hlsize + 1, radang); in selaAddCrossJunctions()
380 pta2 = generatePtaLineFromPt(xc, yc, hlsize + 1, radang + halfpi); in selaAddCrossJunctions()
381 pta3 = generatePtaLineFromPt(xc, yc, hlsize + 1, radang + pi); in selaAddCrossJunctions()
382 pta4 = generatePtaLineFromPt(xc, yc, hlsize + 1, radang + pi + halfpi); in selaAddCrossJunctions()
395 angle = radang + (j - 0.5) * halfpi; in selaAddCrossJunctions()
463 l_float64 pi, halfpi, radincr, jang, radang; in selaAddTJunctions() local
502 radang = (l_float32)i * radincr; in selaAddTJunctions()
503 pta1 = generatePtaLineFromPt(xc, yc, hlsize + 1, jang + radang); in selaAddTJunctions()
[all …]
Dwarper.c269 l_float32 radang);
430 l_float32 radang) in getSinFromLUT() argument
438 if (radang < 0.0) in getSinFromLUT()
439 radang += twopi * (1.0 - (l_int32)(-radang * invtwopi)); in getSinFromLUT()
440 else if (radang > 0.0) in getSinFromLUT()
441 radang -= twopi * (l_int32)(radang * invtwopi); in getSinFromLUT()
444 findex = (2.0 * (l_float32)npts) * (radang * invtwopi); in getSinFromLUT()
Dgraphics.c634 l_float64 radang) in generatePtaLineFromPt() argument
638 x2 = x + (l_int32)((length - 1.0) * cos(radang)); in generatePtaLineFromPt()
639 y2 = y + (l_int32)((length - 1.0) * sin(radang)); in generatePtaLineFromPt()
658 l_float64 radang, in locatePtRadially() argument
667 *px = xr + dist * cos(radang); in locatePtRadially()
668 *py = yr + dist * sin(radang); in locatePtRadially()
Dleptprotos.h533 …LL extern PTA * generatePtaLineFromPt ( l_int32 x, l_int32 y, l_float64 length, l_float64 radang );
534 LEPT_DLL extern l_int32 locatePtRadially ( l_int32 xr, l_int32 yr, l_float64 dist, l_float64 radang
1537 LEPT_DLL extern PIX * pixHShear ( PIX *pixd, PIX *pixs, l_int32 liney, l_float32 radang, l_int32 in…
1538 LEPT_DLL extern PIX * pixVShear ( PIX *pixd, PIX *pixs, l_int32 linex, l_float32 radang, l_int32 in…
1539 LEPT_DLL extern PIX * pixHShearCorner ( PIX *pixd, PIX *pixs, l_float32 radang, l_int32 incolor );
1540 LEPT_DLL extern PIX * pixVShearCorner ( PIX *pixd, PIX *pixs, l_float32 radang, l_int32 incolor );
1541 LEPT_DLL extern PIX * pixHShearCenter ( PIX *pixd, PIX *pixs, l_float32 radang, l_int32 incolor );
1542 LEPT_DLL extern PIX * pixVShearCenter ( PIX *pixd, PIX *pixs, l_float32 radang, l_int32 incolor );
1543 LEPT_DLL extern l_int32 pixHShearIP ( PIX *pixs, l_int32 liney, l_float32 radang, l_int32 incolor );
1544 LEPT_DLL extern l_int32 pixVShearIP ( PIX *pixs, l_int32 linex, l_float32 radang, l_int32 incolor );
/external/tesseract/include/
Dleptprotos.h515 …LL extern PTA * generatePtaLineFromPt ( l_int32 x, l_int32 y, l_float64 length, l_float64 radang );
516 LEPT_DLL extern l_int32 locatePtRadially ( l_int32 xr, l_int32 yr, l_float64 dist, l_float64 radang
1482 LEPT_DLL extern PIX * pixHShear ( PIX *pixd, PIX *pixs, l_int32 liney, l_float32 radang, l_int32 in…
1483 LEPT_DLL extern PIX * pixVShear ( PIX *pixd, PIX *pixs, l_int32 linex, l_float32 radang, l_int32 in…
1484 LEPT_DLL extern PIX * pixHShearCorner ( PIX *pixd, PIX *pixs, l_float32 radang, l_int32 incolor );
1485 LEPT_DLL extern PIX * pixVShearCorner ( PIX *pixd, PIX *pixs, l_float32 radang, l_int32 incolor );
1486 LEPT_DLL extern PIX * pixHShearCenter ( PIX *pixd, PIX *pixs, l_float32 radang, l_int32 incolor );
1487 LEPT_DLL extern PIX * pixVShearCenter ( PIX *pixd, PIX *pixs, l_float32 radang, l_int32 incolor );
1488 LEPT_DLL extern l_int32 pixHShearIP ( PIX *pixs, l_int32 liney, l_float32 radang, l_int32 incolor );
1489 LEPT_DLL extern l_int32 pixVShearIP ( PIX *pixs, l_int32 linex, l_float32 radang, l_int32 incolor );