【问题标题】:adjust contrast of an image to negative percentages in matlab在matlab中将图像的对比度调整为负百分比
【发布时间】:2016-05-01 09:46:02
【问题描述】:

我需要将图像的对比度更改为负百分比。

我使用imcontrast(),但是当我尝试设置负百分比时,它会引发以下错误:

percentage must be a number between 0 and 100

但我需要降低对比度 -20%。 有没有办法做到这一点?

【问题讨论】:

    标签: image matlab image-processing contrast


    【解决方案1】:

    我认为你提出的问题是错误的。

    没有负面的对比。理论上是,但在实施时否。您只需要重新考虑您的问题,然后使用imcontrast 来转换图像的值范围。

    尝试首先使用这个图像对比工具 - http://www.mathworks.com/help/images/adjusting-image-contrast-using-the-adjust-contrast-tool.html

    然后才应用代码 - http://www.mathworks.com/help/images/ref/imcontrast.html

    【讨论】:

    • 对不起,我在图像处理方面有点新手,在某些文章中图像对比度降低了 -20% 作为水印攻击。我也在“xnview”中做了这个,但现在我需要在 matlab 中实现它。我什至不知道 imcontrast() 是一种正确的方法
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-01-13
    • 2013-11-01
    • 2017-08-24
    • 2018-01-06
    • 1970-01-01
    • 2017-06-13
    • 1970-01-01
    相关资源
    最近更新 更多