【问题标题】:Equalize gray levels of images in R均衡R中图像的灰度
【发布时间】:2016-10-29 00:11:07
【问题描述】:

我需要将图像的灰度级均衡为 128 并保存。在我展示了原始图像和新图像之间的差异并显示两个图像的直方图之后。

OBS:如果您使用this 图像进行转换并上传它现在对我有很大帮助。

【问题讨论】:

    标签: r image-processing histogram


    【解决方案1】:

    如果是您的 R 版本的问题,请查看其他 answer

    否则,如果它更适合您想要做的事情,您可能想要使用 imagemagick。也许是这样的:

    convert [image.png] -colorspace gray -channel lightness -equalize -colorspace RGB [output.png]
    

    【讨论】:

    • 这将均衡为 128 个灰度?在 Matlab 中,我需要的确切功能是 histeq(image, 127),但我需要在 R 中这样做。
    猜你喜欢
    • 2015-04-15
    • 2014-11-29
    • 1970-01-01
    • 1970-01-01
    • 2013-11-14
    • 1970-01-01
    • 2016-06-08
    • 2017-09-01
    • 2020-07-20
    相关资源
    最近更新 更多