matlab 三维变一维,matlab实现一维、三维LUT图像颜色校正

该函数用于在图像数据上应用1D或3D LUT进行颜色校正。LUT(查找表)用于调整颜色渐变。支持输入double、uint8或uint16格式的图像数据,以及1D或3D查找表,并可以选择标准或逆序的LUT条目排列。提供了一个示例,展示如何读取图像和LUT文件,然后应用3D LUT并显示校正后的图像。
摘要由CSDN通过智能技术生成

1D / 3D LUT for Image Color Calibration

This function applies 1D or 3D LUTs to image data for color gradient calibration.

A good description of LUTs can be found here:

http://www.lightillusion.com/luts.html

Syntax: [img_lut] = imlut(img,lut,kind,order)

Inputs:

img - the image on which the lut shall be applied, format double,

uint8 or uint16

lut - the color lookup table (either 1D or 3D)

kind - a string '1D' or '3D' specifying whether a 1D LUT or 3D LUT is used

order - order of LUT entries. We differentiate between 'standard' (default) and 'inverse' order. Examples:

Standard Order Inverse Order

R G B R G B

0 0 0 0 0 0

1 0 0 0 0 1

2 0 0 0 0 2

0 1 0 0 1 0

1 1 0 0 1 1

2 1 0 0 1 2

0 2 0 0 2 0

... ...

2 2 2 2 2 2

Outputs:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值