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

fix inpainting operator

parent c9e0d6fa
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ function vtk_mesh(filename, mesh::Mesh) ...@@ -56,7 +56,7 @@ function vtk_mesh(filename, mesh::Mesh)
end end
"convenience function for saving to vtk" "convenience function for saving to vtk"
function save(filename, mesh::Mesh, fs...) function save(filename::String, mesh::Mesh, fs...)
vtk = vtk_mesh(filename, mesh) vtk = vtk_mesh(filename, mesh)
for f in fs for f in fs
f.space.mesh == mesh || f.space.mesh == mesh ||
......
...@@ -201,7 +201,7 @@ function inpaint(img, imgmask; name, params...) ...@@ -201,7 +201,7 @@ function inpaint(img, imgmask; name, params...)
Vg = FeSpace(mesh, P1(), (1,)) Vg = FeSpace(mesh, P1(), (1,))
mask = FeFunction(Vg, name="mask") mask = FeFunction(Vg, name="mask")
T(tdata, u) = iszero(tdata) ? zero(u) : u T(tdata, u) = isone(tdata[begin]) ? u : zero(u)
S(u, nablau) = u S(u, nablau) = u
ctx = L1L2TVContext(name, mesh, m; T, tdata = mask, S, params...) ctx = L1L2TVContext(name, mesh, m; T, tdata = mask, S, params...)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment