Power Law Transformations (Gamma Correction) in Image Processing Using MATLAB

Power Law Transformations (Gamma Correction) in Image Processing Using MATLAB
من خلال الكود يتم ملاحظة تاثير تغير gamma corrections للصورة

إعجاب واحد (1)

هل من الممكن اضافة الكود حتى يكون سهل لمن اراد التجربة ؟؟

هذا هو الكود

%project11: Power Law Transformations (Gamma Correction) in Image Processing Using MATLAB
%فى هذا المشروع يتم حساب ال power law transformatio for image
%يتم حساب ذلك من خلال القانون التالى
%The Power Low Transformations can be given by the expression:
%s=cr^i

%where,

%s is the output pixels value

%r is the input pixel value

%c and i are the real numbers
%first reading image
I = imread('L:\image processing python+matlab\hookwarm1\matlbcodes\telegram projects\cat.jpg');
%convert image format to double
Id = im2double(I);
%here we put the law above
%s is output output1 or output2 or output3
%r is input which is Id
%c here 1(default)
%i {0.5,1.5,3}
output1 = 1*(Id.^0.5);
output2 = 1*(Id.^1.5);
output3 = 1*(Id.^3.0);
%ploting out images 
subplot(2,2,1), imshow(I);
subplot(2,2,2), imshow(output1);
subplot(2,2,3), imshow(output2);
subplot(2,2,4), imshow(output3);
إعجاب واحد (1)