December 15, 2008

My III Sem result

I got 3rd position in III Sem result...I dont know how I got...with god's grace and my friend's help i got 8.61 CGPA...After my AP and Kerala Trip, i am creating new post to blog...I will update my photos soon....till that Advanced Happy Christmas...and Adavanced Happy New Year...

November 03, 2008

My first Matlab Program, Encode and Decode image using Huffman Coding

For the academic purpose i had written a small program in Matlab.

I have tried encoding and decoding the image by using Huffman coding.

Huffman code generally used for data encoding but i tried Huffman coding on small image.

Preconditions:
  1. You need to create a small image, in my code i am using PSR.jpg
  2. It will work well only with small images

Matlab Code:

%Huffman Coding on image by Suresh Raju Pilli

%clearing all variableas and screen
clear all;
close all;
clc;

%Reading image
a=imread('psr.JPG');
figure,imshow(a)

%converting an image to grayscale
I=rgb2gray(a);

%size of the image
[m,n]=size(I);
Totalcount=m*n;

%variables using to find the probability
cnt=1;
sigma=0;

%computing the cumulative probability.
for i=0:255
k=I==i;
count(cnt)=sum(k(:))

%pro array is having the probabilities
pro(cnt)=count(cnt)/Totalcount;
sigma=sigma+pro(cnt);
cumpro(cnt)=sigma;
cnt=cnt+1;
end;


%Symbols for an image
symbols = [0:255];

%Huffman code Dictionary
dict = huffmandict(symbols,pro);

%function which converts array to vector
vec_size = 1;
for p = 1:m
for q = 1:n
newvec(vec_size) = I(p,q);
vec_size = vec_size+1;
end
end

%Huffman Encodig
hcode = huffmanenco(newvec,dict);

%Huffman Decoding
dhsig1 = huffmandeco(hcode,dict);

%convertign dhsig1 double to dhsig uint8
dhsig = uint8(dhsig1);

%vector to array conversion
dec_row=sqrt(length(dhsig));
dec_col=dec_row;

%variables using to convert vector 2 array
arr_row = 1;
arr_col = 1;
vec_si = 1;

for x = 1:m
for y = 1:n
back(x,y)=dhsig(vec_si);
arr_col = arr_col+1;
vec_si = vec_si + 1;
end
arr_row = arr_row+1;
end


%converting image from grayscale to rgb
[deco, map] = gray2ind(back,256);
RGB = ind2rgb(deco,map);
imwrite(RGB,'decoded.JPG');

%end of the huffman coding

Postcondition:
  1. Check the original image and decoded image
  2. Analyze the compression ratio.
You can easily understand the code. Its not at all difficult.

Please send your feedback and comments to psrdotcom@gmail.com

October 28, 2008

Trip to Isha Yoga Foundation

Isha Yoga FoundationIsha Yoga Foundation tour:

Its a memorable journey for me and my friends....

1. We started from our university at 7:30AM
2. We reached Coimbatore Railway Station at 8:20AM
3. I already visited the center once so i know the bus timings and bus no is 14D(direct to the Isha Yoga Center) and 14A to semmedu(7Km distance to Isha Yoga Center).

Bus Timings at Isha Yoga Foundation
4. The above bus timings at the Isha Yoga Center.
5. We got 14A bus at Bigbazzar and got down at semmedu(7km distance to Yoga School).
6. We enjoyed the 7km walk with lot of pictures and scenery.
7. Climate also cool and as per our estimations it rained and we have umbrellas also with us
8. After reaching the Yoga Center according to the directions of the devotees we entered into every block and we enjoyed each and every moment.
9. Two things are not shown in pictures
  • Under 5 feer water "mercury siva lingam", which we can feel the vibrations from the siva lingam.
  • DhyanaLingam, where we can do dhyanam...its very peaceful there....
10. As per schedule we returned from the yoga center at 3:00PM bus, which will start from yoga center to Coimbatore Town Bus Stand.

If you come to coimbatore and if you want some peaceful area, I prefer, you to visit Isha Yoga Foundation, where you can get some peaceful climate...
Thank you everybody,
UR PSR.COM

August 31, 2008

GSM Based Remote Monitoring and Billing

I am trying to draw UML Diagrams and Class Diagrams for that project. Give me some suggestions so that I can perform well in the competition.

August 26, 2008

Are you interested in Hacking?

Dont know how to start from basics?
Then do this...
1) Install Mozilla Firefox latest version
2) Install Add-ons like Firebug, Firecookie, WebDeveloper for editing the script and do some SQL Injection to the week website databases.
3) Install LiveHTTPHeaders Add-on to firefox to check how the request and responses are done.
4) Try to get the WebGoat and practice it. You will know how the hacking happening in the real world.

For any queries send mail to me...urs PSR.COM

August 19, 2008

Registered for IBM Great Mind Challenge 2008

Our project is "GSM Based Remote Monitoring and Billing".

The vision of the project is to replace the existing manual reading of electricity meters installed throughout the country (Home, Agricultural, and Industrial). The proposed solution is to build a server for the Electricity boards in each state where the custom built GSM meters would update in real time through SMS and instant status of the meter network can be established. The system will cut costs and improve transparency to a very large extent. Any failure or inconvenience on the consumer side can be instantly detected and rectified. The electricity board server can monitor and analyze the status of each and every individual meter on the network. The server would also provide a complete billing solution for the same.

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com