-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_ACS.m
33 lines (25 loc) · 999 Bytes
/
run_ACS.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: Adjustable Contrast Stretching Technique
%% 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.
% "Contrast Enhancement for Color Images Using an Adjustable Contrast Stretching Technique."
% International Journal of Computing, vol. 17, no. 2, (2018): pp. 74-80.
%% INPUTS
% x --> is a given low-contrast image
% delta -- > controls the amount of contrast enhancement
%% OUTPUT
% enh --> contrast-enhanced image
%% Starting implementation %%
clc; close all; clear all;
x=im2double(imread('3.jpg'));
figure; imshow(x); title('Orignal')
delta=20;
tic; enh = ACS(x,delta); toc;
figure; imshow(enh); title('ACS-Enhanced')
% imwrite(enh,'ACS_D30.jpg')