图像在rgb和lab空间之间的转换
2008-11-05 09:19
597 查看
转化为lab色彩空间模式后,图像的显示情况和数组大小。
%designed by superdont
%lilizong@gmail.com
%2008.11.5
clc
r=imread('E:/watermark/image/lena512.jpg');
size(r)
[l a b]=rgb2lab(r);
size(l)
size(a)
size(b)
% figure(1),imshow(l);
% figure(2),imshow(a);
% figure(3),imshow(b);
% figure(4),imshow(r);
figure(1),subplot(2,2,1),imshow(l,[]);
subplot(2,2,2),imshow(a,[]);
subplot(2,2,3),imshow(b,[]);
subplot(2,2,4),imshow(r,[]);
%designed by superdont
%lilizong@gmail.com
%2008.11.5
clc
r=imread('E:/watermark/image/lena512.jpg');
size(r)
[l a b]=rgb2lab(r);
size(l)
size(a)
size(b)
% figure(1),imshow(l);
% figure(2),imshow(a);
% figure(3),imshow(b);
% figure(4),imshow(r);
figure(1),subplot(2,2,1),imshow(l,[]);
subplot(2,2,2),imshow(a,[]);
subplot(2,2,3),imshow(b,[]);
subplot(2,2,4),imshow(r,[]);
相关文章推荐
- 图像在rgb和lab空间之间的转换
- 不同颜色空间的图像转换(RGB到HSV,YUV,Lab)
- FFMPEG 实现 YUV,RGB各种图像原始数据之间的转换(swscale)
- 利用cvtColor实现图像颜色空间的转换-比如RGB转灰度图等
- HSV颜色空间理解及RGB图像转换到HSV空间的方法(数据集扩充)
- 颜色空间转换:RGB转换为Lab(续)
- 数字图像处理 颜色空间RGB、HSI、CMYK、YUV的相互转换
- 图像的空间转换 HSI→RGB 和 RGB→HSI
- opencv之Rgb图像转化到HSV、Lab空间,对各通道的操作
- HSI颜色空间和RGB颜色空间之间的相互转换
- 图像的RGB颜色空间和HSI空间的转换
- FFMPEG 实现 YUV,RGB各种图像原始数据之间的转换(swscale)
- 使用Matlab绘制图像的rgb颜色空间和Lab颜色空间分量图和分量直方图
- opencv实现将RGB图像转换到HSI空间
- 【图像处理】颜色转换 nv21转rgb rgb转lab
- FFMPEG 实现 YUV,RGB各种图像原始数据之间的转换(swscale)
- FFMPEG 实现 YUV,RGB各种图像原始数据之间的转换(swscale)
- RGB颜色空间与Lab颜色空间区别与联系(附转换代码)
- RGB和YCbCr颜色空间之间的转换及优化算法
- 如何做YUV的分辨率转换 - FFMPEG 实现 YUV,RGB各种图像原始数据之间的转换(swscale)