I need help guys.. Please if someone can provide me matlab code for my research paper. This is link to my paper http://was​et.org/pub​lications/​17107

1 view (last 30 days)
Actually, I have only 3 days left, and if I will not complete this , I will loose my 1 year, and I will have to wait for more than one year for my registration. I am very new to matlab but still I am trying since 10days, but I am not able to do this. I have done only this much of part of code...
m1=imread('abc2.jpeg');
m2=im2double(rgb2ycbcr(m1));
sample1=m2(:,:,1);
sample1_mean=mean(mean(sample1))
%Binarizing Samples area
BINsample1=im2bw(sample1,sample1_mean);
imshow(BINsample1);
%Removing noise
L=medfilt2(BINsample1,[3,3]);
figure, imshow(L)
%normailzation of image
gemiddeld=mean2(L)
standaard_afwyking=std2(L)
NormalizedArray = (L-gemiddeld) ./ standaard_afwyking;
GS = NormalizedArray ./ max(NormalizedArray(:))-min(NormalizedArray(:));
NormArrayU8 = uint8(255*(NormalizedArray+ 3)./6)
figure, imshow(GS);
%thinning of an image
%
BW2 = bwmorph(GS,'thin')
figure, imshow(BW2);
Thanks , Thanks in advance.
  6 Comments
Image Analyst
Image Analyst on 6 Jan 2014
Just attach your script please. And also attach your image so we can run it. And what are you trying to do, other than display the blocks and thinning each block? Why are you trying to thin? Do you know that you will have bad edge effects at the block boundaries if you are thinning?

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!