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校正背景 在电视和图形监视器中,显像管发生的电子束及其生成的图像亮度并不是随显像管的输入电压线性变化,电子流与输入电压相比是按照指数曲线变化的,输入电压的指数要大于电子束的指数.这说明暗 ...
随机推荐
- 多线程 同步对象 event 简单实例 &进程间通信
多线程 同步对象event import threading,time class Boss(threading.Thread): def run(self): print("BOSS:今晚 ...
- 如何把MyEclipse中的web项目导入到Eclipse中运行
有时我们需要将MyEclipse中的项目导入到Eclipse中运行,如果不注意到一些细节,会造成无法运行的后果.下面就说说具体操作: 如何导入到Eclipse就不在重述了,导入后出现如下错误: 与上面 ...
- Linux下的service命令和chkconfig命令的原理
CentOS下的service命令和chkconfig命令的原理 1.service命令的原理 service命令用来对服务进行启动和关闭,比如service mysqld start可以启动mysq ...
- 关于新建XIB去关联控制器,报错- the view outlet was not set
凡事必勤,切勿眼高手低.这是我对于自己惰性的又一次的自我认识与批评.以前遇见而又解决的问题,当时没有记录,以为都是小CASE,直到积累了广泛的问题和技能,遇见了相同的问题,而又忘记了,又一次认识到笔记 ...
- linux系统中的命令替换与整数运算$(),$(())
一.$()与`` 在 bash shell 中,$( ) 与 ` ` (反引号) 都是用来做命令替换(command substitution)用的. 所谓的命令替换与我们第五章学过的变量替换差不多, ...
- Oracle-属性查询
1. 查询表的部分字段属性 select t.*, c.comments from user_tab_columns t, user_col_comments c where t.table_name ...
- 10个android开发必备的开源项目
You are here: Home » » Blog » 10 Open Source Android Apps which every Android developer must look in ...
- LoadRunner11学习记录七 -- 负载生成器、事务&集合点顺序、HTML&URL录制
1.什么情况下用到负载生成器? 当需要使用多台测试机对同一服务器同时压力测试时,需要配置负载生成器. 2.LoadRunner中事务和集合点的放置顺序问题 1)事务放在集合点前面 这时事务的时间包含了 ...
- code1169 传纸条
来自:http://www.cnblogs.com/DSChan/p/4862019.html 题目说找来回两条不相交路径,其实也可以等价为从(1,1)到(n,m)的两条不相交路径. 如果是只找一条, ...
- MemoryUsage:监测java虚拟机内存使用
通过MemoryUsage可以查看Java 虚拟机的内存池的内存使用情况.MemoryUsage类有四个值(均以字节为单位): ===Init=== java虚拟机在启动的时候向操作系统请求的初始内存 ...