简单图像修复

huangapple go评论57阅读模式
英文:

Simple Image Inpainting

问题

I'm new to this so forgive me if my question sounds silly.
我是新手,如果我的问题听起来很傻,请原谅。

I'm trying to fill a certain hole in an image based on the pixel around the hole.
我尝试根据孔周围的像素来填充图像中的特定孔。

Semantics are not our concerns here so I'm just looking for a simple method or algorithm to do so.
语义不是我们关心的问题,所以我只是在寻找一个简单的方法或算法来完成这个任务。

For example, if we have this picture below, I need the area in the hole to have a similar color to the one surrounding it.
例如,如果我们有下面的这张图片,我需要孔内的区域具有与周围相似的颜色。

Can anyone help, please?
请问有人可以帮助吗?

英文:

I'm new to this so forgive me if my question sounds silly.
I'm trying to fill a certain hole in an image based on the pixel around the hole.
Semantics are not our concerns here so I'm just looking for a simple method or algorithm to do so.
For example, if we have this picture below, I need the area in the hole to have a similar color to the one surrounding it.

简单图像修复

Can anyone help, please?

答案1

得分: 0

你可以使用简单的插值方法来填充图像中的空洞,假设你知道如何检测图像中的空洞。由于你没有明确提到你想要使用的编程环境,你可以阅读这篇文章:

https://www.mathworks.com/help/matlab/interpolation.html

这是MATLAB,可能是最简单的语言之一,可以帮助你完成你的任务。希望这会有所帮助。

英文:

Assuming you know how to detect holes in your image, you can use simple interpolation to fill it. Since you don't ask specifically about the programming environment you want to use, you can read this article

https://www.mathworks.com/help/matlab/interpolation.html

It is MATLAB, probably the simplest language that will allow you to accomplish your task. Hope it will help.

huangapple
  • 本文由 发表于 2020年1月6日 15:04:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/59607961.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定