英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论