Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Определять завал вертикалей #31

Open
Borodin opened this issue Apr 29, 2021 · 0 comments
Open

Определять завал вертикалей #31

Borodin opened this issue Apr 29, 2021 · 0 comments

Comments

@Borodin
Copy link
Member

Borodin commented Apr 29, 2021

Выводить в таблицу pt pano-check предупреждение о завале вертикалей
если хотя бы один из поворотов объектива больше их медианы на определенный коэффициент и вертикальных контрольных точек не больше 3

Снимок экрана 2021-04-29 в 18 21 22

Снимок экрана 2021-04-29 в 18 28 54

https://gist.github.com/caseyjustus/1166258

c n2 N3 x3501 y2651 X1617 Y2801 t0
# Control Point No 46: 1.419660865987207
c n2 N3 x3039 y1683 X1791 Y1973 t0
# Control Point No 47: 1.115812009448991
c n2 N3 x2327 y2962 X385 Y2782 t0
# Control Point No 48: 1.142109741571652
c n1 N1 x943 y2252 X1010 Y4104 t1
# Control Point No 49: -1
c n2 N2 x1015 y2247 X1018 Y3992 t1
# Control Point No 50: -1
c n3 N3 x958 y2198 X983 Y4110 t1
# Control Point No 51: -1
c n4 N4 x945 y2231 X1019 Y4160 t1
# Control Point No 52: -1
const ALPHA = 2.5;
const rolls = [-5.2735, -1.2584, 2.3222, -1.5464];
const medianRolls = median(rolls);
const tilt = rolls.some(n => Math.abs(n - medianRolls) > ALPHA);

return tilt && (verticalLine < 3 && verticalLine != 0) ? '👍' : '👎'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant