//Contrast Manipulation
//Scilab 5.4.1
//Windows 10 
//Requires SIVP, IPD toolboxes

clear;
clc;

a=imread('Lenna.png');

a = rgb2gray(a);
b = double(a)*0.5;
b = uint8(b)
c = double(b)*2;
c = uint8(c)

imwrite(b,'DecreaseinContrast.jpeg'); 
imwrite(c,'IncreaseinContrast.jpeg'); 
