Gamma correction using the sRGB and Adobe RGB standards

版本 1.0.0.1 (2.9 MB) 作者: Mahmoud Afifi
Gamma correction using the sRGB and Adobe RGB standards
287.0 次下载
更新时间 2019/1/4

查看许可证

Linearize gamma-corrected RGB values (from sRGB or Adobe RGB 1998 to linear RGB) and apply gamma correction to linear RGB values (from linear RGB to sRGB or Adobe RGB 1998).
Reference:
1) Ebner, Marc. "Gamma Correction." Color Constancy. Chichester, West Sussex: John Wiley & Sons, 2007.
2) Adobe Systems Incorporated. "Inverting the color component transfer function." Adobe RGB (1998) Color Image Encoding. Section 4.3.5.2, May 2005, p.12.
Assumptions:
- There are no color manipulations applied on the RGB before applying the gamma correction to the input image. The gamma correction was applied in the same way of either Adobe RGB standards or gamma 2.2.

Note:
-There is a very small reconstruction error if you are going from sRGB (input image) to linear RGB, then from linear RGB to sRGB caused by round-off error.
-If you have Matlab 2017b or higher, you can use lin2rgb and rgb2lin functions instead.

引用格式

Mahmoud Afifi (2024). Gamma correction using the sRGB and Adobe RGB standards (https://www.mathworks.com/matlabcentral/fileexchange/65672-gamma-correction-using-the-srgb-and-adobe-rgb-standards), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2016b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Gamma Functions 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

lin2rgb-rgb2lin

版本 已发布 发行说明
1.0.0.1

.

1.0.0.0

description updated
.

.