Commit f177eb2e authored by Éric Thiébaut's avatar Éric Thiébaut
Browse files

Disable weighting (another bug found by Michel) for now

parent a0bb98d3
......@@ -127,11 +127,15 @@ function findalignedboxes(A::AbstractMatrix{<:Real},
if length(Ix) nx && length(Iy) ny
score1 = zero(T)
@inbounds for k in 1:nx
score1 += Wx[k]*Qx[Ix[k]]
# FIXME: needs to sort to apply weights
#score1 += Wx[k]*Qx[Ix[k]]
score1 += Qx[Ix[k]]
end
score2 = zero(T)
@inbounds for k in 1:ny
score2 += Wy[k]*Qy[Iy[k]]
# FIXME: needs to sort to apply weights
#score2 += Wy[k]*Qy[Iy[k]]
score2 += Qy[Iy[k]]
end
score = score1 + score2
if best_score < score
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment