Skip to content

Commit

Permalink
fix mu bug
Browse files Browse the repository at this point in the history
this is only important when the local image is not locally flat and the mu vector is not near zero (though, it usually is very close to zero). However, this was a clear bug that caused poor handling in regions with gradients across the local image.
  • Loading branch information
andrew-saydjari authored Jul 31, 2023
1 parent e37620f commit 7826048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/perstar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function build_cov!(cov::Array{T,2},μ::Array{T,1},cx::Int,cy::Int,bimage::Array
@inbounds cov[i,j] = t
@inbounds cov[j,i] = t
if i == j
@inbounds μ[i] = μ1μ2
@inbounds μ[i] = sqrt(μ1μ2)
end
end
end
Expand Down

0 comments on commit 7826048

Please sign in to comment.