如何仅在ImageMagick中的一个通道中调整直方图?

发布于 2025-02-01 13:47:25 字数 1655 浏览 1 评论 0原文

我有一个图像,希望调整以看起来像目标图像。

通过以下调整,我越来越接近目标图像,但是我看到红色通道有很大的差异,特别是在阴影中,我的问题是如何仅调整此通道以获得结果?

我的命令:(

convert actual_srgb.jpg -contrast-stretch 4x0.8% bb_4x0.8.jpg

顺便说一句,我已使用Adobe RGB配置文件应用于初始图像)

来源:

“在此处输入图像说明”

“

​:(请参阅红色通道)

”在此处输入图像描述”

目标:

”在此处输入图像描述

I have an image that want to adjust to look like a target image.

With the following adjustment I get closer to the target image, but I see a big difference in the red channel, specially in the shadows, my question is how can I adjust only this channel to get the result?

My command:

convert actual_srgb.jpg -contrast-stretch 4x0.8% bb_4x0.8.jpg

(BTW, I've applied sRGB profile to the initial image with the Adobe RGB profile)

source:

enter image description here

enter image description here

enter image description here

My result: (See the Red channel)

enter image description here
enter image description here
enter image description here

Target:

enter image description here
enter image description here
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱的十字路口 2025-02-08 13:47:25

如果您只想在ImageMagick中调整一个通道,则将-Channel X添加到您的命令中,其中X为R或G或B,

convert actual_srgb.jpg -channel R -contrast-stretch 4x0.8% +channel bb_4x0.8.jpg

例如调整红色通道。

If you want to adjust just one channel in Imagemagick, then add -channel X to your command where X is R or G or B

convert actual_srgb.jpg -channel R -contrast-stretch 4x0.8% +channel bb_4x0.8.jpg

to adjust just the red channel for example.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文