forked from DiclehanOguzhan/MDO_MEF
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.m
70 lines (68 loc) · 2.68 KB
/
demo.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
% ========================================================================
%
% Corresponding Author
% =========> M.Sc. Oguzhan Ulucan, Izmir, Turkey
% ============ Electrical and Electronics Engineer
% ============ oguzhan.ulucan.iz@gmail.com
%
% ========================================================================
%
% Multi-exposure image fusion based on linear embeddings
% and watershed masking
%
% Copyright(c) 2020 Oguzhan Ulucan, Diclehan Karakaya and Mehmet Turkan
%
% All Rights Reserved.
%
% ----------------------------------------------------------------------
% Permission to use, copy, or modify this software and its documentation
% for educational and research purposes only and without fee is hereby
% granted, provided that this copyright notice and the original authors'
% names appear on all copies and supporting documentation. This program
% shall not be used, rewritten, or adapted as the basis of a commercial
% software or hardware product without first obtaining permission of the
% authors. The authors make no representations about the suitability of
% this software for any purpose. It is provided "as is" without express
% or implied warranty.
%----------------------------------------------------------------------
%
% This is the implementation of Multi-Exposure Image Fusion
% based on Linear Embeddings and Watershed Masking, Oguzhan Ulucan,
% Diclehan Karakaya, Mehmet Turkan, Signal Processing,
% vol. 178, pp. 107791, Jan. 2021.
%
%
% Please cite the work if you use this package.
%
%
% @article{ulucan178multi,
% title={Multi-exposure image fusion based on linear embeddings
% and watershed masking},
% author={Ulucan, Oguzhan and Karakaya, Diclehan and Turkan, Mehmet},
% journal={Signal Processing},
% volume={178},
% pages={107791},
% publisher={Elsevier}
% }
%
%----------------------------------------------------------------------
%
% Required Input : Source static image sequence in RGB.
%
% Output:
% (1) F : The fused image.
% (2) MEF_SSIM : The fusion score according
% Perceptual Quality Assessment for Multi-Exposure Image Fusion, Kede Ma,
% Kai Zeng, Zhou Wang, IEEE Transactions on Image Processing, vol. 24,
% pp. 3345 - 3356, Nov. 2015.
%
% Usage:
% Select the image stacks folder to be fused.
% Note that, the images in the folder should be in order
% from Under exposed to Over-exposed as in the "Tower" file.
%
%----------------------------------------------------------------------
clear all, close all, clc
I = load_images(uigetdir);
[F,MEF_SSIM] = MDO_MEF(I);
imshow(F) % Show the Output Image