資源簡介
MATLAB實現LTP和LBP算法,將處理后的圖像分別顯示出來
代碼片段和文件信息
clear?all;
%?將彩色圖像轉換為灰色圖像
img?=?rgb2gray(imread(‘image.png‘));?
%?將灰色圖像轉換為lbp圖像
filtered_img?=?lbp(img);
%?將灰色圖像轉換為ltp圖像
upper_img?=?upper_ltp(img);
lower_img?=?lower_ltp(img);
%subplot將多個圖畫到一個平面上的工具
%將圖畫排成2行2列
subplot(221);
imshow(img);
subplot(222);
imshow(filtered_img);
subplot(223);
imshow(upper_img);
subplot(224);
imshow(lower_img);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-04-08?11:10??LBP-master\
?????文件?????????405??2016-04-08?11:09??LBP-master\demo.m
?????文件??????340644??2015-06-18?00:27??LBP-master\image.png
?????文件?????????603??2016-04-07?19:58??LBP-master\lbp.m
?????文件?????????696??2016-04-08?10:49??LBP-master\lower_ltp.m
?????文件?????????693??2016-04-08?10:49??LBP-master\upper_ltp.m
評論
共有 條評論