資源簡介
利用matlab簡單的實現自動曝光,附圖像展示實驗效果。
代碼片段和文件信息
clear;
clc;
close?all;
I?=?imread(‘原圖.jpg‘);
size(I);
imshow(I);?title(‘原圖像‘);
I_g?=?rgb2gray(I);
figure;
imshow(I_g);
g?=?1;?%增益
Vshight?=?255*0.9;
Vhight?=?255*0.8;
Vlow?=?255*0.5;
Vslow?=?255*0.4;
[countx]?=?imhist(I_g);
figure;
imhist(I_g);title(‘直方圖信息‘);
count(floor(Vshight)+2:end)
NVM?=?sum(count(floor(Vshight)+2:end));
NW?=?sum(count(floor(Vhight)+2:end));
NB?=?sum(cou
- 上一篇:PCNN分割,邊緣提取,圖像增強等matlab程序
- 下一篇:3dmax邊角選擇腳本
評論
共有 條評論