r710: fixed incorrect inversion coordinate (#112)
This commit is contained in:
parent
b71c01b316
commit
a0d62519c1
9
align.c
9
align.c
|
|
@ -676,8 +676,13 @@ static int mm_align1_inv(void *km, const mm_mapopt_t *opt, const mm_idx_t *mi, i
|
|||
r_inv->rev = !r1->rev;
|
||||
r_inv->rid = r1->rid;
|
||||
r_inv->div = -1.0f;
|
||||
r_inv->qs = r1->rev? r2->qe + q_off : r1->qe + q_off;
|
||||
r_inv->qe = r_inv->qs + ez->max_q + 1;
|
||||
if (r_inv->rev == 0) {
|
||||
r_inv->qs = r2->qe + q_off;
|
||||
r_inv->qe = r_inv->qs + ez->max_q + 1;
|
||||
} else {
|
||||
r_inv->qe = r2->qs - q_off;
|
||||
r_inv->qs = r_inv->qe - (ez->max_q + 1);
|
||||
}
|
||||
r_inv->rs = r1->re + t_off;
|
||||
r_inv->re = r_inv->rs + ez->max_t + 1;
|
||||
mm_update_extra(r_inv, &qseq[q_off], &tseq[t_off], mat, opt->q, opt->e);
|
||||
|
|
|
|||
Loading…
Reference in New Issue