Download as pdf
Download as pdf
You are on page 1of 2

1

[just for fun ya...]

JUST FOR FUN NO SEX CAUSES BAD EYES

Hahaha... suddenly i got an idea about how to read an image contains sentence thats unable to read at glance. Well, maybe half people can and half cant.. in this section i will try to use image processing. So this is the picture

Actually this image has 201 x 960 in size. This size makes it difficult to read because its discontinuity at each letter. So the idea is to make size of the image smaller so we can make this discontinuity disappear. But not really disappear. Here are the steps: Import image information by reading it into matlab
filename='image.jpg'; I=imread(filename); imshow(I); result:

Jans.hendry@gmail.com

[just for fun ya...]

Resize image smaller, lets say 50% and 9% in height and width
[x,y]=size(I); x=.5*x; y=.09*y; bw=imresize(I,[x y],'cubic');

Change its color format to binary image (we use common threshold technique)
bw=im2bw(bw,.3);

Reverse its bit and violaa...


bw=~bw; figure, imshow(bw); result

And its now able to be read clearly.. Hei.. come on.. This is just for fun dude... @thanks...

Jans.hendry@gmail.com

You might also like