BIMEF
Code for our paper "A Bio-Inspired Multi-Exposure Fusion Framework for Low-light Image Enhancement"
- The code for the comparison method is also provided, see lowlight
- Downloads: google Drive (Just unzip data to current folder)
- Datasets
VV, LIME, NPE, NPE-ex1, NPE-ex2, NPE-ex3, DICM, MEF
- Since some methods are quite time-consuming, we also provide their results (e.g.
[email protected]
) - Since some metrics are quite time-consuming, we also provide their results (
TestReport.zip
)
- Datasets
- All the experiments can be reproduced easily by running
experiments.m
From left to right: input images, results of MSRCR, Dong, NPE, LIME, MF, SRIE, and BIMEF(ours).
Datasets
- VV ๏ผ**Busting image enhancement and tone-mapping algorithms: **A collection of the most challenging cases๏ผ
- LIME-data
- NPE-data, NPE-ex1, NPE-ex2, NPE-ex3
- DICM โโ 69 captured images from commercial digital cameras: Download (15.3 MB)
- MEF dataset
Prerequisites
- Original code is tested on Matlab 2016b 64bit, Windows 10.
- matlabPyrTools is required to run VIF metric (
vif.m
).
Setup
Run startup.m
to add required path, then you are able to try the following demo.
I = imread('yellowlily.jpg');
J = BIMEF(I);
subplot 121; imshow(I); title('Original Image');
subplot 122; imshow(J); title('Enhanced Result');
Replace BIMEF
with other methods you want to test.
Directory Structure
.
โโโ data # put your datasets here
โ โโโ MEF # dataset name (VV, LIME, NPE...)
โ โโโ out
โ โ โโโ loe100x100 # LOE visualization results
โ โ โโโ TestReport.csv # results of metrics
โ โ โโโ TestReport__xxxx.csv # backups of TestReport
โ โ โโโ xxx__method.PNG # output images
โ โโโ xxx.jpg # input images
โ
โโโ lowlight # lowlight image enhancement methods
โโโ quality # image quality metrics (blind or full-reference)
โโโ util # provide commonly used utility functions
โ
โโโ demo.m # simple demo of lowlight enhancement
โโโ experiments.m # reproduce our experiments
โโโ startup.m # for installation
Usage
Run experiments.
% specify datasets
dataset = {'VV' 'LIME' 'NPE' 'NPE-ex1' 'NPE-ex2' 'NPE-ex3' 'MEF' 'DICM'};
dataset = strcat('data', filesep, dataset, filesep, '*.*');
% specify methods and metrics
method = {@multiscaleRetinex @dong @npe @lime @mf @srie @BIMEF};
metric = {@loe100x100 @vif};
for d = dataset, data = d{1};
data,
Test = TestImage(data);
Test.Method = method;
Test.Metric = metric;
% run test and display results
Test,
% save test to a .csv file
save(Test);
end
Show test reports.
% table
TestReport('TestReport__VV.csv'),
% boxplot
TestReport('TestReport__MEF.csv').boxplot;
Our method (BIMEF) has the lowest LOE and the highest VIF.