|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
代码:
" y6 I& h( j, kfiles = {'office_1.jpg', 'office_2.jpg', 'office_3.jpg', ...
" P; m5 o3 i# u% P0 j 'office_4.jpg', 'office_5.jpg', 'office_6.jpg'};%ͼ2-3$ Z. F& l4 n* [& t ?
expTimes = [0.0333, 0.1000, 0.3333, 0.6250, 1.3000, 4.0000];1 Q0 n4 z& ?1 c6 s/ w9 u
hdr = makehdr(files, 'RelativeExposure', expTimes ./ expTimes(1));3 e, B* k+ h# G+ a! `
rgb = tonemap(hdr);
, ]5 V* A/ m* R( r! Pfigure; imshow(rgb)%0 n$ Q d k2 m2 N8 t
% [+ |0 Y s* g3 e- d( d. o5 w代码
6 z0 o3 k9 a; f4 a' `! v3 ^/ X3 |" Dimshow('board.tif')%显示文件中的图像 l4 v2 u3 O" W/ T# I+ w
[X,map] = imread('trees.tif');( L, I8 b5 t) x. U
imshow(X,map)%显示索引图像
+ y' K# v, Z' t! Z3 ~" sI = imread('cameraman.tif');4 j1 C: W3 N7 d0 ~7 @" Q! `4 h
imshow(I)%显示灰度图像
! h' q! r+ b8 I1 X3 o, E! Gh = imshow(I,[0 80]);%显示灰度图像,调整显示范围。
9 i) T: s6 E2 n- S- q' j' t' v$ b7 n4 Z$ |. I- E) Y
$ `, Y0 E, H6 k; Z$ C4 B
1 u N3 U4 I. m: B& v
/ j6 ]# u0 ? u: f/ ]: i0 P( L/ u' M% O/ t0 m; j) @# Q" f
9 P# ?' O3 d7 Z+ c; D1 T! ~
: B5 s% E$ h W4 h) x* [! _2 ^7 S3 u4 ?. w1 d
6 M2 T6 O$ \0 H" y J' x
' m) ~* ]* G( `. Z% T! i( e7 B |
|