histogram specification matlab code without using builtin functions
#1

provide me matlab code for histogram matching but don't use any builtin functions.
Reply
#2
histogram specification matlab code without using builtin functions

clc

I = imread ('Machine-Edge.PNG');
I2 = rgb2gray(I);
colormap gray;

y = imhist(I2);


%using hist eq. built in fn
I3= histeq(I2);
z= imhist(I3);

%my equalization
r = size(I2,1);
c = size(I2,2);
A= zeros(1,256);

%counting number of pixels of the image and putting the count in Array A
for j=1:r
for x=1:c
v=I2(j,x);
A(v+1)=A(v+1)+1;
end
end

%pi=n/size
for y=1;256
pi(y)= ((A(y))/(r*c));
end

%calculate CI (cumulated pi )
ci(1)=pi(1);
for yy=2;256
ci(yy) = ci(yy-1)+ pi(yy);
end

%calculate T=range *Ci
for b=1;256
T(b)=ci(b)*255;
end

%equilization..replacing each pixel with T value
for j=1:r
for x=1:c
I4(j,x) =T(I2(j,x));

end
end




vv= imhist(I4);



figure
subplot(3,2,1)
imagesc(I2)
subplot(3,2,2)
plot(y)

subplot(3,2,3)
imagesc(I3)
subplot(3,2,4)
plot(z)

subplot(3,2,5)
imagesc(I4)
subplot(3,2,6)
plot(vv)
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: fast histogram specification, what is the use of histogram specification a fast and flexible method to process digital images, histogram specification a fast and flexible method to process digital images ppt, histogram specification a fast and flexible method to process digital images architecture, histogram specification calculation ppt, matlab functions for node mobility, matlab program of circular convolution without using inbuilt functions,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  authentication schemes for session passwords using color and images project source code 2 2,238 03-02-2018, 09:35 AM
Last Post: Nischithnash
  image encryption and decryption using rsa algorithm in matlab 2 7,914 29-05-2017, 04:17 PM
Last Post: Priyanka Bidikar
  download liver tumor ct scan image in matlab with source code 4 8,070 21-05-2017, 09:54 PM
Last Post: abdulrahmanmashaal
  MATLAB codes needed for powerline communication 1 8,081 12-04-2017, 05:00 PM
Last Post: jaseela123d
  source code for task scheduling using genetic algorithm using java 2 8,532 11-04-2017, 08:31 PM
Last Post: Guest
Thumbs Up source code of online payment system using steganography and visual cryptography 3 8,513 06-04-2017, 09:56 AM
Last Post: jaseela123d
  matlab code for wavelet based ofdm transmitter 1 923 24-02-2017, 11:18 AM
Last Post: ijasti
  code to extract brain tumor detection using matlab 2 1,067 17-10-2016, 04:32 PM
Last Post: girish123ak
  f5 algorithm steganography matlab code 2 871 04-10-2016, 03:00 AM
Last Post: [email protected]
  color image segmentation using jseg algorithm in matlab code 2 868 29-09-2016, 12:07 PM
Last Post: Guest

Forum Jump: