c++ - 生成使用颜色检查器生成的imatest颜色误差图的背景?

标签 c++ matlab colors adobe-illustrator cielab

我在查找使用 imatest 制作的以下绘图的背景时遇到了一些问题。基本上我想知道的是,我如何或从哪里可以找到这个情节的背景。 imatest 网站提到,图表的颜色是在恒定亮度 L* = 90 和通过将 a* 和 b* 从 -80 到 +80 变化而生成的。我一直在寻找 Lab 颜色生成器,但所有软件都会生成彩色点。但我想通过改变 a 和 b 值来获得连续图像。有什么想法吗?

enter image description here

最佳答案

使用matlab,您可以简单地将 cielab 空间转换为 RGB 空间:

range = -80:0.5:80;                            % a,b range, change the step to change the size of the output image.
L     = 100*ones(size(range,2),size(range,2)); % L intensity
[b,a] = meshgrid(range);                       % generate a 2D grid
Lab   = cat(3,L,a,b);                          % create the 3D Lab array
I     = lab2rgb(rot90(Lab));                   % Lab -> RGB
imshow(I)                                      % Display the result

我们得到:

enter image description here

关于c++ - 生成使用颜色检查器生成的imatest颜色误差图的背景?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65393337/

相关文章:

java - Matlab 分散不起作用

ios - 通过 Storyboard命名颜色

c# - Bitmap Region is already locked 异常

c++ - const引用类型的模板类型推导

matlab - 使用 Matlab spy 函数可视化具有强度的稀疏模式

c++ - 通过示例了解复制构造函数和赋值运算符

matlab - Matlab复数矩阵的两种输入方式有什么区别

objective-c - 如何将 NSProgressIndicator 颜色从灰色更改为白色?

c++ - 如何阻止函数在 MS VS C++ 中导出?

c++ - 不能以 NULL 终止接收缓冲区