codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Follow publication

Quick Guide to Image Inpainting using OpenCV

Amey Gondhalekar
codeburst
Published in
5 min readJun 30, 2020

--

Photo by Jade Stephens on Unsplash

What is Image Inpainting?

Source: https://images.app.goo.gl/MFD928ZvBJFZf1yj8
cv2.inpaint(src, inpaintMask, dst, inpaintRadius, flags)1. src: Input 8-bit 1-channel or 3-channel image.
2. inpaintMask: Inpainting mask image
3. dst: Output image
4. inpaintRadius: Radius of a circular neighborhood of each point inpainted that is considered by the algorithm
5. flags: Algorithm to be used - INPAINT_TELEA or INPAINT_NS
Input Image — — — — — —— — — — — — — ——Mask Image — — — — — — — — -— — — — — — -— — Output (Image By Author)
— — -Input Image — — — —— — Mask Image — — — — — - Output TELEA — — —— — — — -Output NS — — Source: https://www.learnopencv.com/wp-content/uploads/2019/04/inpaint-output-1024x401.jpg
Source: https://miro.medium.com/max/1400/1*QdgUsxJn5Qg5-vo0BDS6MA.png

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Published in codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

No responses yet