如何填充投影图像的空白部分? [英] How to fill empty parts of a projected image?

查看:227
本文介绍了如何填充投影图像的空白部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在2D平面上投影3D模型(透视投影)时,投影结果显示为下图。

When i projected a 3D model on a 2D plan (Perspective projection) the result of the projection appeared as the following image.

我需要填写此图片中的空白点,看起来像这样一个

and i need to fill empty points in this image to look like this one

我想知道我能找到一个很好的方法来使用matlab的任何图像处理算法以专业的方式填补这一点

i wonder that i can find a good way to fill this points with a professional way using any image processing algorithms using matlab

推荐答案

这是一个MATLAB版本,有点相当于 @ belisarius 回答:

Here is a MATLAB version somewhat equivalent to @belisarius answer:

I = double(imread('http://i.stack.imgur.com/sedZH.png'));
BW = im2bw(I,graythresh(I));
BW = imerode(BW,strel('square',2*3+1));
BW = imfilter(BW, fspecial('average',10));
BW = imdilate(BW,strel('square',2*3+1));
BW = imcomplement(BW);
imshow(BW)

这篇关于如何填充投影图像的空白部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆