https://doi.org/10.5201/ipol.2012.g-tvi
Raw File
Tip revision: 2cc1be6ae636163bfaaf300aeb376dbea4f887f9 authored by Software Heritage on 01 July 2012, 00:00:00 UTC
ipol: Deposit 1195 in collection ipol
Tip revision: 2cc1be6
example.sh
#! /bin/bash
# TV inpainting example BASH shell script

# Echo shell commands
set -v

# Generate an inpainting domain D.bmp from random text
./randmask text mountain.bmp D.bmp

# Set the image to gray within the inpainting domain to create masked.bmp
./applymask mountain.bmp D.bmp masked.bmp

# Inpaint masked.bmp using the inpainting domain D.bmp with lambda = 100.
# The result is saved to inpainted.bmp.
./tvinpaint D.bmp 100 masked.bmp inpainted.bmp

back to top