Gamma Correction of OIIO
\apiitem{"oiio:ColorSpace" : string} | |
The name of the color space of the color channels. Values incude: | |
\qkw{Linear}, \qkw{sRGB}, \qkw{GammaCorrected}, \qkw{AdobeRGB}, | |
\qkw{Rec709}, and \qkw{KodakLog}. | |
\apiend | |
\apiitem{"oiio:Gamma" : float} | |
If the color space is \qkw{GammaCorrected}, this value is the gamma | |
exponent. | |
\apiend |
The {\cf ImageSpec::extra_attribs} field may store metadata that reveals | |
the color space the image file in the \qkw{oiio:ColorSpace} | |
attribute, which may take on any of the following values: | |
\begin{description} | |
\item[\halfspc \rm \qkw{Linear}] indicates that the | |
color pixel values are known to be linear. | |
\item[\halfspc \rm \qkw{GammaCorrected}] indicates | |
that the color pixel values (but not alpha or $z$) have | |
already been gamma corrected (raised to the power $1/\gamma$), and | |
that the gamma exponent may be found in the \qkw{oiio:Gamma} metadata. | |
\item[\halfspc \rm \qkw{sRGB}] indicates that the | |
color pixel values are in sRGB color space. | |
\item[\halfspc \rm \qkw{AdobeRGB}] indicates that the | |
color pixel values are in Adobe RGB color space. | |
\item[\halfspc \rm \qkw{Rec709}] indicates that the | |
color pixel values are in Rec709 color space. | |
\item[\halfspc \rm \qkw{KodakLog}] indicates that the | |
color pixel values are in Kodak logarithmic color space. | |
\end{description} | |
The \ImageInput sets the \qkw{oiio:ColorSpace} metadata in a | |
purely advisory capacity --- the {\cf read} will not convert pixel | |
values among color spaces. Many image file formats only support | |
nonlinear color spaces (for example, JPEG/JFIF dictates use of sRGB). | |
So your application should intelligently deal with gamma-corrected and | |
sRGB input, at the very least. | |
The color space hints only describe color channels. You should assume that | |
alpha or depth ($z$) channels (designated by the {\cf alpha_channel} and | |
{\cf z_channel} fields, respectively) always represent linear values and | |
should never be transformed by your application. |
spec.attribute("oiio::ColorSpace", "Linear");
spec.attribute("oiio::ColorSpace", "GammaCorrected");
spec.attribute("oiio::Gamma", (float)gamma);
spec.attribute("oiio::ColorSpace", "sRGB");
spec.attribute("oiio::ColorSpace", "Rec709");
----------------------------------------------------------------------------------------------------------
Applies an inverse gamma correction to texture lookups. For example, a value of 2.2 will linearize a texture that comes in with a gamma of 2.2. This is done for 8 and 16 bit images.
Arnold scans the contents of a texture (it does not rely on the extension) and anything that is not float is considered to have a gamma baked even if the image has a different color space embedded.
Tx texture format
You can convert your textures to linear space with the make tx tool. This way you can ensure that all of your textures are linear before rendering. For example:
maketx --colorconvert sRGB linear C:\solidangle\mtoadeploy\2014\bin\image.jpg
Gamma Correction of OIIO的更多相关文章
- 【图形学】我理解的伽马校正(Gamma Correction)
http://blog.csdn.net/candycat1992/article/details/46228771/ 写在前面 我相信几乎所有做图像处理方面的人都听过伽马校正(Gamma Corre ...
- Gamma Correction
[Gamma Correction] 磁盘上存储的纹理可分为Linear Texture.Gamma Texture. sRGB sampling allows the Unity Editor to ...
- Gamma correction 伽马校准及 matlab 实现
matlab 内置实现:imadjust Gamma Correction gamma correction formula : .^(gamma) or .^(1/gamma)? 用以调整图像光照强 ...
- 【视频开发】伽马校正(gamma correction)学习笔记
我相信几乎所有做图像处理方面的人都听过伽马校正(Gamma Correction)这一个名词,但真正明白它是什么.为什么要有它.以及怎么用它的人其实不多.我也不例外. 最初我查过一些资料,但很多文章 ...
- [笔记]dynamic gamma correction
2014-03-17 14:37:04 周一 在设计过程中参考论文<一种改进的视频画质增强算法及VLSI设计>电子学报 在YUV色彩空间对输入图像的信息进行判断分类和对比度调整,然后对调 ...
- 【转】Using Gamma 2.2
This is a detailed description of the work with Gamma 2.2. If you are only interested in exact instr ...
- gamma
图:显卡(驱动程序)上的Gamma设置 图:ACDSEE中的曝光调节 二. 什么是Gamma? 2.1. 显示器Gamma曲线 Gamma可能源于CRT(显示器/电视机)的响应曲线,即其亮度与输入电压 ...
- 图像处理之gamma校正
1 gamma校正背景 在电视和图形监视器中,显像管发生的电子束及其生成的图像亮度并不是随显像管的输入电压线性变化,电子流与输入电压相比是按照指数曲线变化的,输入电压的指数要大于电子束的指数.这说明暗 ...
- gamma校正
1 gamma校正背景 在电视和图形监视器中,显像管发生的电子束及其生成的图像亮度并不是随显像管的输入电压线性变化,电子流与输入电压相比是按照指数曲线变化的,输入电压的指数要大于电子束的指数.这说明暗 ...
随机推荐
- flutter photo_view的改造
app中对图片的浏览.缩放是一个常用的功能,目前有一款插件photo_view,基本上可以满足这些功能,但是有些地方需要修改完善 1.双击放大的时候,有三个状态,会有一个放大的中间状态,需要点击三次才 ...
- 3DMAX导出FBX的烘焙动画选项
勾选了 [烘焙动画]选项时,表示由骨骼动画塌陷为逐帧动画,这样的结果就是:导出的动画确保是正确的,但体积增大,这是骨骼动画与逐帧去画的区别所在. 如果不勾选此选项,则导出的是骨骼动画,可能出现一些问题 ...
- 【原】Coursera—Andrew Ng机器学习—课程笔记 Lecture 16—Recommender Systems 推荐系统
Lecture 16 Recommender Systems 推荐系统 16.1 问题形式化 Problem Formulation 在机器学习领域,对于一些问题存在一些算法, 能试图自动地替你学习到 ...
- Linux内核SPI支持概述
1. 什么是SPI? Serial Peripheral Interface是一种同步4线串口链路,用于连接传感器.内存和外设到微控制器.他是一种简单的事实标准,还不足以复杂到需要一份正式的规范.SP ...
- kubernetes configmap
ConfigMaps允许您将配置工件与image内容分离,以保持容器化应用程序的便携性. 本页面提供了一系列使用示例,演示如何使用ConfigMaps中存储的数据创建ConfigMaps和配置Pod. ...
- 3D数学基础 KeyNote 1
[计算几何复习要点] 1.向量加法的几何含意: a+b的释意为:a的尾连上b的头,新建一条从a的尾指向b的头的向量. 2.向量减法的几何含意: a-b的释意为:尾部相连,新建一个从b的头指向a的头的向 ...
- Nginx 源码完全注释(10)ngx_radix_tree
ngx_radix_tree.h // 未被使用的节点 #define NGX_RADIX_NO_VALUE (uintptr_t) -1 typedef struct ngx_radix_node_ ...
- sourcetree免注册方法
step1: https://www.sourcetreeapp.com/官网下载windows版软件 step2: 右键-->以管理员身份运行,便安装成功了 step3: 安装好之后会有这么一 ...
- 面向对象的JavaScript-001
一. Question是父类,MultipleChoiceQuestion和DragDropQuestion是子类 二. 1. <script> // 面向对象 function Ques ...
- [Email] 收发邮件的协议 : IMAP and SMTP , POP3 and SMTP
支持 IMAP 和 SMTP 的应用 与仅同步收件箱的 POP 不同,IMAP 同步所有电子邮件文件夹. 在电子邮件应用中使用以下设置. 接收 (IMAP) 服务器 服务器地址:imap-mail.o ...