我在查找使用 imatest 制作的以下绘图的背景时遇到了一些问题。基本上我想知道的是,我如何或从哪里可以找到这个情节的背景。 imatest 网站提到,图表的颜色是在恒定亮度 L* = 90
和通过将 a* 和 b* 从 -80 到 +80
变化而生成的。我一直在寻找 Lab 颜色生成器,但所有软件都会生成彩色点。但我想通过改变 a 和 b 值来获得连续图像。有什么想法吗?
最佳答案
使用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
我们得到:
关于c++ - 生成使用颜色检查器生成的imatest颜色误差图的背景?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65393337/