jhultman / image-inpainting

Inpainting via convex optimization.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image inpainting

Here we use convex optimization to inpaint missing pixels in corrupted images. We find the discrete gradient and minimize its l1 norm under the constraint that the recovered image must match the corrupt image at those indices where the pixels are valid. I first saw this problem in a lecture by Stephen Boyd and Steven Diamond (Stanford).

Examples

  1. Text removal. Text

  2. Extreme sparsity (90% missing data). Noise

  3. Using crude heuristic for identifying bad pixels. Watermark

About

Inpainting via convex optimization.


Languages

Language:Python 100.0%