-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_LCACE.m
33 lines (25 loc) · 1.06 KB
/
run_LCACE.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
%% Title: Low-Complexity Algorithm for Contrast Enhancement (LCACE)
%% Created by Zohair Al-Ameen.
% Department of Computer Science,
% College of Computer Science and Mathematics,
% University of Mosul,
% Mosul, Nineveh, Iraq
%% Please report bugs and/or send comments to Zohair Al-Ameen.
% Email: [email protected]
%% When you use this code or any part of it, please cite the following article:
% Zohair Al-Ameen, and Zaman Awni Hasan,
% "A Low-Complexity Algorithm for Contrast Enhancement of Digital Images,"
% International Journal of Image, Graphics and Signal Processing, vol. 10, no. 2, (2018): pp. 60-67. DOI: 10.5815/ijigsp.2018.02.07
%% INPUTS
% x --> is a given low-contrast image
% L -- > controls the amount of contrast enhancement
%% OUTPUT
% res --> a contrast-enhanced image.
%% Starting implementation %%
clear all; clc; close all;
x=im2double(imread('1.jpg'));
figure; imshow(x); title('Orignal')
L = 0.9;
tic; res = LCACE(x, L); toc;
figure; imshow(res);title('Processed by LCACE')
% imwrite(res,'1_LCACE_L0.9.jpg')