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校正背景 在电视和图形监视器中,显像管发生的电子束及其生成的图像亮度并不是随显像管的输入电压线性变化,电子流与输入电压相比是按照指数曲线变化的,输入电压的指数要大于电子束的指数.这说明暗 ...
随机推荐
- oracle常用函数总结(二)
之前也有写过“oracle常用函数总结(一)”,为了尽量找全常见oracle函数,笔者特意查找了相关资料来作为参考,下边给大家罗列出来,部分和之前有重复的,希望能帮到大家! 列举了31个函数和1个分组 ...
- <转> win7下破解已安装的VS2008
http://renfan.blog.51cto.com/3466724/754301 在win7系统下,已安装的VS2008维护界面是不显示序列号输入的,需要按以下步骤进行才能破解 1.点击“卸载/ ...
- MySQL数据库篇之单表查询
主要内容: 一.单表查询的语法 二.关键字的执行优先级 三.简单查询 四.where约束 五.分组查询 group by 六.having过滤 七.查询排序 order by 八.限制查询的记录数 l ...
- Jenkins + Jmeter +Ant自动化集成环境搭建(一)
所需工具 一.jmeter 工具下载 https://jmeter.apache.org/ 配置环境JDK等及各种插件可以看小七之前的教程 二.Ant安装(http://ant.apache.org ...
- Opencv 图像矩
#include <iostream>#include <opencv2/opencv.hpp> using namespace std;using namespace cv; ...
- 14-敌兵布阵(HDU1166线段树 & 树状数组)
http://acm.hdu.edu.cn/showproblem.php?pid=1166 敌兵布阵 Time Limit: 2000/1000 MS (Java/Others) Memory ...
- 万能头文件#include<bits/stdc++.h>
最近在打cf时赛后翻阅别人的代码总是会发现一个陌生而奇怪的头文件#include<bits/stdc++.h> 奇怪之处就在于基本上所有的代码只要用了这个头文件就不再写其他头文件了. 百度 ...
- DPDK收发包全景分析
前言:DPDK收发包是基础核心模块,从网卡收到包到驱动把包拷贝到系统内存中,再到系统对这块数据包的内存管理,由于在处理过程中实现了零拷贝,数据包从接收到发送始终只有一份,对这个报文的管理在前面的mem ...
- RedHat 6 下配置网卡IP地址,Virtual Linux下配置网卡IP
经常用到,自己Mark一下,顺带给需要的人参考. 1.配置文件修改 $ vi /etc/sysconfig/network-scripts/ifcfg-eth0 内容: DEVICE="et ...
- Python 中 "is" 与 "==" 操作有什么区别?
转自:https://foofish.net/what-is-difference-between-is-and-euqals.html 在 Python 中,比较两个对象(变量)是否相等,可以用 & ...