Code covered by the BSD License  

Highlights from
Study of various Digital Image Processing concepts using MATLAB

image thumbnail

Study of various Digital Image Processing concepts using MATLAB

by

 

Study of various Digital Image Processing concepts using MATLAB. .txt files for C are also included

NegLogPowerlaw.m
close all;
clear all;
F=rgb2gray(imread('home1.bmp'));


C=input('Enter Value of C ');
gamma=input('Enter Value of gamma ');
 
        G=256-F;
        H=uint8(C.*log(double(1+F)));
        I=uint8(C.*((double(F)).^gamma));
    

subplot(2,2,1);
imshow(F);
title('Original Image');

subplot(2,2,2);
imshow(G);
title('Negative Operator');
 
subplot(2,2,3);
imshow(H);
logtext=sprintf('Logarithmic Operator for C=%2.1f and gamma=%0.2f',C,gamma);
title(logtext);
 
subplot(2,2,4);
imshow(I);
powtext=sprintf('Power Law Operator for C=%2.1f and gamma=%0.2f',C,gamma);
title(powtext);

Contact us