資源簡介
基于圖像分析的偏色檢測,使用matlab實現,內涵對應代碼的論文。
代碼片段和文件信息
function?hueerror_test()
?
????clc
????file_src_type?=?‘dir‘;
????fid?=?[];
????switch?file_src_type
????????case?‘bmp‘
????????????dir_path?=?‘‘;
????????????files(1).name?=?[‘E:\hueerror\normal_16.bmp‘];
????????case?‘dir‘
????????????%dir_path?=?‘E:\hueerror\‘;
????????????dir_path?=?‘E:\contract\normal\‘;
????????????files?=?[];
????????????files?=?[files?dir([dir_path?‘*.bmp‘])];
????end
????figure;
????for?i=1:size(files?1)
????????single_file?=?[dir_path??files(i).name];
????????fip?=?imread(single_file);
????????imshow(fip);
????????%pause;
????????[size_H?size_W?size_N]?=?size(fip);
????????[L?a?b]?=?RGB2Lab(fip);
????????%subplot(311);imshow(L);
????????%subplot(312);imshow(a);
????????%subplot(313);imshow(b);????????
????????%pause;
????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1606??2012-02-10?13:16??hueerror_test.m
?????文件????????1575??2012-01-05?10:15??RGB2Lab.m
?????文件??????940343??2012-01-04?15:02??基于圖像分析的偏色檢測及顏色校正方法.pdf
評論
共有 條評論