Golge KICSIT (tutorials and other helping material for learners)
Notes and Help for the students,learners and anyone you can ask for questions and help
Pages
Home
Tutorials
BEIT-8
BEIT-7
BEIT-6
BEIT-5
BEIT-4
BEIT-3
BEIT-2
BEIT-1
Saturday, 31 August 2013
Gamma Correction Code
clc
clear all
A = imread('a.bmp');
[row,col] = size(A);
gemma = zeros(row,col);
n=input('enter the value of bit');
for x=1:row
for y=1:col
gemma(x,y)=A(x,y);
gemma(x,y)=power(gemma(x,y),n);
end
end
gemma=gemma/255;
imwrite(gemma,'2.0.bmp','bmp');
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment