资源简介
基于高斯拉普拉斯的HDR合成matlab代码,效果很好,无p文件,代码和例子都有,方便使用
代码片段和文件信息
% Display the contents of a pyramid as returned by functions
% ‘laplacian_pyramid‘ or ‘gaussian pyramid‘
%
% tom.mertens@gmail.com August 2007
%
function display_pyramid(pyr)
L = length(pyr);
r = size(pyr{1}1);
c = size(pyr{1}2);
k = size(pyr{1}3);
R = zeros(r2*ck);
offset = 1;
for l = 1:L
I = pyr{l};
r = size(I1);
c = size(I2);
R(1:r offset:offset-1+c :) = I;
offset = offset + c;
end
if (min(R(:)) < 1e-5)
%make negative values displayable
a = min(R(:));
b = max(R(:));
R = (R - a) / (b - a);
end
figure; imshow(R);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-02-27 10:33 exposure-fusion-master\
文件 1318 2015-02-27 10:33 exposure-fusion-master\LICENSE
文件 693 2015-02-27 10:33 exposure-fusion-master\README.md
文件 607 2015-02-27 10:33 exposure-fusion-master\display_pyramid.m
文件 1984 2015-02-27 10:33 exposure-fusion-master\downsample.m
文件 1633 2015-02-27 10:33 exposure-fusion-master\example.m
文件 3990 2015-02-27 10:33 exposure-fusion-master\exposure_fusion.m
文件 1900 2015-02-27 10:33 exposure-fusion-master\gaussian_pyramid.m
目录 0 2015-02-27 10:33 exposure-fusion-master\house\
文件 128392 2015-02-27 10:33 exposure-fusion-master\house\A.jpg
文件 230903 2015-02-27 10:33 exposure-fusion-master\house\B.jpg
文件 265826 2015-02-27 10:33 exposure-fusion-master\house\C.jpg
文件 167969 2015-02-27 10:33 exposure-fusion-master\house\D.jpg
文件 29 2015-02-27 10:33 exposure-fusion-master\house\readme.txt
文件 2410 2015-02-27 10:33 exposure-fusion-master\laplacian_pyramid.m
文件 2607 2015-02-27 10:33 exposure-fusion-master\load_images.m
文件 1586 2015-02-27 10:33 exposure-fusion-master\pyramid_filter.m
文件 2029 2015-02-27 10:33 exposure-fusion-master\reconstruct_laplacian_pyramid.m
文件 2204 2015-02-27 10:33 exposure-fusion-master\upsample.m
评论
共有 条评论