【问题标题】:How to remove reflection from image with with image-processing如何使用图像处理去除图像中的反射
【发布时间】:2017-09-12 02:20:36
【问题描述】:

我正在寻找合适的过滤器来消除反射。 在我的具体情况下,我想在白板上使用它,例如:

Before

After

【问题讨论】:

标签: image algorithm image-processing filter filtering


【解决方案1】:

膨胀是一种非常简单(虽然并不完美)的方法:

im = im2double(rgb2gray(imread('board.png')));
imd = imdilate(im,strel('diamond',1));
res = im - imd;
res = res - min(res(:)); res = res./max(res);
imshow(res)

您也可以在之后应用一些阈值。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-05-27
    • 2011-03-10
    • 2021-04-18
    • 1970-01-01
    • 2020-06-03
    • 1970-01-01
    • 2011-07-27
    相关资源
    最近更新 更多