i m doing image enhancement using a transformation function.i need help in the coding.I have considered the (3,4)pixel value
Show older comments
clear all;
close all;
input1=imread('cameraman.tif');
subplot(2,1,1),imshow(input1)
C=mean2(double(input1))%global mean
slidingmean=conv2(double(input1),ones(3)/9,'same');%local mean over 3 by 3 window
%figure(2),imshow(slidingmean)
J=stdfilt(input1);%standard deviation of the 3 by 3 neighborhood
figure(2),imshow(J,[])
a=1;b=.5;c=1;k=1.5;
K=(k*C)./(2.2423+b)
g=K*(157-(c*156.4444))+(156.4444).^a;%the transformation function
outpu1=g(input1);
figure(3),imshow(output1)
Accepted Answer
More Answers (0)
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!