Commit 160d25f6 authored by Elijah Justin Medina's avatar Elijah Justin Medina
Browse files

Semi-final commit

the image is still not rendering. for final changes later
parent 9001382f
......@@ -81,6 +81,6 @@ def apply_morphed_mask(process, img, radius):
mask = imageio.imread(f"web/data/morph/morph_new_{img.replace('.','-')}-{radius}-{process}.png")
img_arr = imageio.imread(f'data/images/{img}')
img_out = img_arr*(mask//255).reshape(*mask.shape, 1)
imageio.imwrite(f"web/data/morph/morph_masked_{img.replace('.','-')}-{radius}-{process}.png", img_out)
imageio.imwrite(f"web/data/masked_morphimg/morph_masked_{img.replace('.','-')}-{radius}-{process}.png", img_out)
return ('', 204)
# @app.route('/maskthres')
\ No newline at end of file
web/data/morph/morph_init.png

2.01 KB | W: | H:

web/data/morph/morph_init.png

7.96 KB | W: | H:

web/data/morph/morph_init.png
web/data/morph/morph_init.png
web/data/morph/morph_init.png
web/data/morph/morph_init.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
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