⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rgb2labconvert.m

📁 ufc无监督优化模糊聚类用于彩色图像分割
💻 M
字号:
function [Img, L, A, B, L_hist, A_hist, B_hist]=rgb2LABConvert(ImgFile)
%ImgFile
[Img,map] = imread(ImgFile);
if (isind(Img))
    Img = ind2rgb(Img, map);
end
Img = im2double(Img);
%min(min(Img))
%max(max(Img))
LAB = rgb2LAB(Img);
L = LAB(:,:,1);
A = LAB(:,:,2);
B = LAB(:,:,3);

[x,y]=size(L);
L_hist=hist(reshape(L,x*y,1),100); 
[x,y]=size(A);
A_hist=hist(reshape(A,x*y,1),100); 
[x,y]=size(B);
B_hist=hist(reshape(B,x*y,1),100); 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -