Skip to content
Snippets Groups Projects
Commit 370069e3 authored by Stephan Hilb's avatar Stephan Hilb
Browse files

fix image sampling

parent d8094efd
No related branches found
No related tags found
No related merge requests found
......@@ -347,7 +347,7 @@ function _sample(f::FeFunction)
I1 = round.(Int, SVector(maximum(A[1, :]), maximum(A[2, :])) .- m0) .+ 1
for I in CartesianIndex(I0[1], I0[2]):CartesianIndex(I1[1], I1[2])
x = SVector(Tuple(I) .- m0)
x = SVector(Tuple(I) .- 1 .+ m0)
# TODO: move to global-to-local function or inside-triangle test
xloc = (A[:, SUnitRange(2, 3)] .- A[:, 1])::SArray \
(x .- A[:, 1])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment