資源簡介
圖像處理中非均勻校正的程序,對學習圖像處理非均勻校正的同學有幫助
代碼片段和文件信息
clear?all;
close?all;
%S_high?=?imread(‘C:\Users\weifeng\Desktop\high1_12_100.bmp‘);?
%S_low=imread(‘C:\Users\weifeng\Desktop\low_12_100.bmp‘);?
%handimg=imread(‘C:\Users\weifeng\Desktop\scen1_12_1336.bmp‘);?
%save?imagedate;
load?imagedate;?????????????????????%加載圖像
[yx]=size(S_high);?????????????????%?取出圖像大小
S_high=double(S_high);
S_low=double(S_low);
handimg=double(handimg);
SH=sum(sum(S_high))./(x*y);
SL=sum(sum(S_low))./(x*y);
S_H=SH*ones(200200);
S_L=SL*ones(200200);
Dij_H=S_high-S_H;
Dij_L=S_low-S_L;
[XY]=meshgrid(1:x1:y);?%?生成網格坐標
%*******************原始圖像********************%
figure;
subplot(321);
imshow(uint8(S_high));
title(‘原始高溫圖像‘);
subplot(322);
mesh(XYS_high);????????????????%?畫三維圖
title(‘原始高溫圖像三維顯示‘);
set(gca‘ZLim‘[0210]);
color
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????95621??2015-12-26?17:17??imagedate.mat
?????文件????????6166??2016-01-04?13:57??image_processing.m
評論
共有 條評論