-
Notifications
You must be signed in to change notification settings - Fork 1
/
runtime_measure.m
42 lines (34 loc) · 1.16 KB
/
runtime_measure.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
%%=========================================================================
% Copyright ©2020, SoC Design Lab., Dong-A University. All Right Reserved.
%==========================================================================
% - Date : 2020/01/13
% - Author : Dat Ngo
% - Affiliation: SoC Design Lab. - Dong-A University
% - Design : Recording new_indicator_v5 value on hazy images
%==========================================================================
%% Clean-up
close all;
clear;
clc;
%% Add necessary path
addpath(genpath('source_code/'));
addpath(genpath('path to FADE source code'));
%% Input image
imgnum = 8;
in_img_path = 'path to test images';
%% Recording DF values
timerec_fade = zeros(imgnum,1);
timerec_df = zeros(imgnum,1);
timerec_hde = zeros(imgnum,1);
for index = 1:imgnum
img = imread([in_img_path,num2str(index,'%d'),'.jpg']);
% FADE
func = @() FADE(img);
timerec_fade(index) = timeit(func);
% DF
func = @() ref_model(img);
timerec_df(index) = timeit(func);
% HDE
func = @() new_indicator_v5_opt(img,5,9);
timerec_hde(index) = timeit(func);
end