Skip to content

Commit

Permalink
Trying to get a few images in
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Ferraro authored and Matt Ferraro committed Aug 16, 2021
1 parent 046451a commit 8b5fcc3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mesh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ function quantifyLoss(D, suffix, img)
println(size(red))
println(size(green))
rgbImg = RGB.(red, green, blue)'
# save("loss_$(suffix).png", rgbImg)
save("loss_$(suffix).png", map(clamp01nan, rgbImg))

# println("Saving output image:")
# println(typeof(img))
Expand Down Expand Up @@ -507,7 +507,7 @@ function oneIteration(meshy, img, suffix)
end
end

# saveObj(matrix_to_mesh(ϕ * .1), "phi_$(suffix).obj")
saveObj(matrix_to_mesh* .02), "phi_$(suffix).obj")
# saveObj(matrix_to_mesh(D * 10), "D_$(suffix).obj")

# Now we need to march the x,y locations in our mesh according to this gradient!
Expand Down Expand Up @@ -817,7 +817,8 @@ end

function main()
# img = Gray.(load("cat.jpg"))
img = Gray.(load("necco2.jpg"))
# img = Gray.(load("necco2.jpg"))
img = Gray.(load("cat_posing.jpg"))
img2 = permutedims(img) * 1.0
width, height = size(img2)

Expand Down

0 comments on commit 8b5fcc3

Please sign in to comment.