Tuesday, May 13, 2008
Thursday, April 17, 2008
Tuesday, December 18, 2007
吃大便
我他妈的讨厌leecher
他妈的一整天只会抄我的assignment solution
分数不及我还不甘愿
还email lecturer 问为什么我的分数比较高?
妈的我作一个assignment 要用三个星期
你妈妈的你用一个小时就抄完还讲什么鸟话
妈的什么贡献都没有还敢给我看脸色
妈的FYP你不用想粘着我
我宁愿solo
吃大便
他妈的一整天只会抄我的assignment solution
分数不及我还不甘愿
还email lecturer 问为什么我的分数比较高?
妈的我作一个assignment 要用三个星期
你妈妈的你用一个小时就抄完还讲什么鸟话
妈的什么贡献都没有还敢给我看脸色
妈的FYP你不用想粘着我
我宁愿solo
吃大便
Friday, November 30, 2007
好久不见
好久不见
一个多月前
成绩除了
拿了3.92 gpa
没有很开心
也 没有不开心
最近日子变得很沉闷
一个多月前
从玩maple
35天
上到了90级
没有很开心
也 没有不开心
很久没有打网球了
最近才稍微打少少
决定了
买一把RM500+的新球拍
因为有折扣
RM350。。
是一把很好的拍
我是不是太自不量力了
决定订购的那一刻
没有很开心
也 没有不开心
生活的步伐
越来越沉闷
无爱的摇篮
依旧摇晃着
我望着乌云
盼狂风暴雨
请你杀了我
请你杀了我
谢了
一个多月前
成绩除了
拿了3.92 gpa
没有很开心
也 没有不开心
最近日子变得很沉闷
一个多月前
从玩maple
35天
上到了90级
没有很开心
也 没有不开心
很久没有打网球了
最近才稍微打少少
决定了
买一把RM500+的新球拍
因为有折扣
RM350。。
是一把很好的拍
我是不是太自不量力了
决定订购的那一刻
没有很开心
也 没有不开心
生活的步伐
越来越沉闷
无爱的摇篮
依旧摇晃着
我望着乌云
盼狂风暴雨
请你杀了我
请你杀了我
谢了
Monday, October 15, 2007
Thursday, September 20, 2007
差不远了
我的人生.
变化还瞒大的.
小时候
被管教得很严
我爱家
我7次离家出走
结果都没有成功
因为自己没有那种勇气走远
出走的地点总是一样的
总会被找到
又或许是
希望被找到.
我不想死
6年纪那年
被调到6P班级
结果第一次评审只考班级第11名
没有在10名里没有资格回家
这个是家庭教育
但是还是硬着头皮回家
当然
被骂被打是家常便饭
就在当天
告诉自己
我不想活了
吞了很多很多的paracetomol
结果只是晕睡了过去
醒来时
我仍然活着
一点事也没有..
我很努力
6年纪以后
上了钟灵中学
我的初中考试成绩正常是红字.
绝对精彩全年总平均
是全级最后第3名.
我很丑
form 4 那年
喜欢上一个女生
终于告白了
很开心
她没有狠心拒绝我
她好好的拒绝我
慢慢的拒绝我..
我很健康
form 5 那年
是飞电单车的日子
也是最烂情的日子
被人喜欢
也喜欢人
纠缠在两个人之间
烦的时候
就飞电单车
时速150公里
我张开双手
让电单车自由奔驰
那种感觉真的很好很好
虽然死亡的距离很近很近
但是开心的容量却很满很满
天意
我没有死于车祸
我很开心
中学毕业典礼的歌
我为大家弹
大家都在唱
我一直弹
我一直弹
如果时间可以停止在那里
就好了
我的未来
我在槟城钟灵读form 6
离开了北海
form 6 那年
我告诉自己
我要努力的
考试靠得好
但是却又发生感情纠纷
纠缠在3角关系
一个大我两岁的女生
一个时常打她又大我9岁的男人
当然
一个18岁的我
我的财产
form 6 那年
参加了马来西亚邪教之首
lampe berger
因为好朋友们都参加了
他们都谈这个话题
没有参加的根本不懂他们聊什么
是我愚蠢
损失了家人14千
损失的同时
大我两岁的她也离开了我
我离开了学校
不读了
开始在社会里打滚
在打工
我姐很好
帮我找了大学
我里开北海
没有一点留念
我已经
什么都没有了
我很堕落
在大学foundation的日子
我的出席率低过0
时常收到警告信
每一天
都留在Ragnarok online里
里面有我的光荣
有我的开心
我的离开
大学1st year
我离开了RO
因为又发生了感情纠纷
我很烂
我是懂的
我的现在
大学3rd year
是我这背子最努力的日子
4 flat了
lecturer 对我说
high expectation on your research report
从全级最差与现在相比
连我自己也没能相信的
我想多爱我自己
但是我的身体不允许
两天没有吃东西了
健康不好
或许差不远了
变化还瞒大的.
小时候
被管教得很严
我爱家
我7次离家出走
结果都没有成功
因为自己没有那种勇气走远
出走的地点总是一样的
总会被找到
又或许是
希望被找到.
我不想死
6年纪那年
被调到6P班级
结果第一次评审只考班级第11名
没有在10名里没有资格回家
这个是家庭教育
但是还是硬着头皮回家
当然
被骂被打是家常便饭
就在当天
告诉自己
我不想活了
吞了很多很多的paracetomol
结果只是晕睡了过去
醒来时
我仍然活着
一点事也没有..
我很努力
6年纪以后
上了钟灵中学
我的初中考试成绩正常是红字.
绝对精彩全年总平均
是全级最后第3名.
我很丑
form 4 那年
喜欢上一个女生
终于告白了
很开心
她没有狠心拒绝我
她好好的拒绝我
慢慢的拒绝我..
我很健康
form 5 那年
是飞电单车的日子
也是最烂情的日子
被人喜欢
也喜欢人
纠缠在两个人之间
烦的时候
就飞电单车
时速150公里
我张开双手
让电单车自由奔驰
那种感觉真的很好很好
虽然死亡的距离很近很近
但是开心的容量却很满很满
天意
我没有死于车祸
我很开心
中学毕业典礼的歌
我为大家弹
大家都在唱
我一直弹
我一直弹
如果时间可以停止在那里
就好了
我的未来
我在槟城钟灵读form 6
离开了北海
form 6 那年
我告诉自己
我要努力的
考试靠得好
但是却又发生感情纠纷
纠缠在3角关系
一个大我两岁的女生
一个时常打她又大我9岁的男人
当然
一个18岁的我
我的财产
form 6 那年
参加了马来西亚邪教之首
lampe berger
因为好朋友们都参加了
他们都谈这个话题
没有参加的根本不懂他们聊什么
是我愚蠢
损失了家人14千
损失的同时
大我两岁的她也离开了我
我离开了学校
不读了
开始在社会里打滚
在打工
我姐很好
帮我找了大学
我里开北海
没有一点留念
我已经
什么都没有了
我很堕落
在大学foundation的日子
我的出席率低过0
时常收到警告信
每一天
都留在Ragnarok online里
里面有我的光荣
有我的开心
我的离开
大学1st year
我离开了RO
因为又发生了感情纠纷
我很烂
我是懂的
我的现在
大学3rd year
是我这背子最努力的日子
4 flat了
lecturer 对我说
high expectation on your research report
从全级最差与现在相比
连我自己也没能相信的
我想多爱我自己
但是我的身体不允许
两天没有吃东西了
健康不好
或许差不远了
Saturday, September 01, 2007
意料以外
ETM3136 的成绩出了.
拿到29 over 30...
全batch最高..
真的连我自己的没有想到的.
虽然开心
但是
随后的压力
让我更辛苦
我很害怕
也很累
我真的有这种实力吗.. :(
很多很多Research还没有完成.
Due date就要到了..
又要考试了..
它妈妈的这次的Final Exam提早了..
都是它妈妈的Hari Raya害的.
根本不可能够时间准备.
现在开始读?
我从Sem Start就开始读了.
我都知道来不及.
要背要熟读的多么多.
何况我现在是3rd Year了..
烦..
拿到29 over 30...
全batch最高..
真的连我自己的没有想到的.
虽然开心
但是
随后的压力
让我更辛苦
我很害怕
也很累
我真的有这种实力吗.. :(
很多很多Research还没有完成.
Due date就要到了..
又要考试了..
它妈妈的这次的Final Exam提早了..
都是它妈妈的Hari Raya害的.
根本不可能够时间准备.
现在开始读?
我从Sem Start就开始读了.
我都知道来不及.
要背要熟读的多么多.
何况我现在是3rd Year了..
烦..
Monday, August 20, 2007
Saturday, August 11, 2007
Friday, August 10, 2007
for ECP : One Try Freeplay
这个sem要做一个关于multimedia的website.
里面要有video要有music.
还要分类是computer generated 和real captured的.
所以就录了以下的短片.
只是乱乱弹吧了.
想到什么弹什么.
还有点弹错.
one try freeplay
for assignment use only
***短片暂时删除, 经过video和image processing之后再post上来***
里面要有video要有music.
还要分类是computer generated 和real captured的.
所以就录了以下的短片.
只是乱乱弹吧了.
想到什么弹什么.
还有点弹错.
one try freeplay
for assignment use only
***短片暂时删除, 经过video和image processing之后再post上来***
Thursday, August 09, 2007
帮帮忙 :)

Love Cosplay ?
http://cosplay-is.blogspot.com*click*
刚刚做了Cosplay-is的Banner.
朋友朋友帮我推广以下.
就好像打广告酱.
把下面的code放在你们的blog html的sidebar或着post里面就可以了.
非常谢谢啊~
Tuesday, August 07, 2007
战车驾崩
大家好,
这是我的新战车.
Toyota LE 85
之前装有Skyline GTR Engine 的 Nissan Sunny 驾崩了.
就在考ETM3136的晚上.
我很自然的park在XR后面.
也很自然的因为急尿急着上厕所.
结果很自然的忘记关车灯.
所以很自然的我的战车开不了.
如果你想告诉我你的车没有关灯三个小时还能安然无恙.
那么你的一定是价格非凡时速超过200km/h的脚车.
天才都知道脚车灯是要有移动才亮的.
要回的时候不能回.
这两个天才跟我的车来当然也不能回.
不要被他们的样子吓坏.
其实他们都很有爱心.
一个赶着要去看电影.
一个赶着要回家喝汤.
所以两个天才帮我推车是我的荣幸.
结果推了两个大圈到最后还是找人借车电池.
Engineer 万岁!
推车万岁 !
这是我的新战车.
Toyota LE 85
之前装有Skyline GTR Engine 的 Nissan Sunny 驾崩了.
我很自然的park在XR后面.
也很自然的因为急尿急着上厕所.
结果很自然的忘记关车灯.
所以很自然的我的战车开不了.
如果你想告诉我你的车没有关灯三个小时还能安然无恙.
那么你的一定是价格非凡时速超过200km/h的脚车.
天才都知道脚车灯是要有移动才亮的.
这两个天才跟我的车来当然也不能回.
不要被他们的样子吓坏.
其实他们都很有爱心.
一个赶着要去看电影.
一个赶着要回家喝汤.
所以两个天才帮我推车是我的荣幸.
结果推了两个大圈到最后还是找人借车电池.
Engineer 万岁!
推车万岁 !
Saturday, August 04, 2007
Prince O3 White MP
| Length: | 27.0 |
| Headsize: | 100 sq in |
| Flex: | Firm |
| Cross Section: | 23-25-22mm |
| Weight: | 10.6oz / 300g |
| Balance: | 12.6in / 32.0cm |
| Grip: | DuraTac |
| Rec. Strings: | Lightning XX 16 |
| Power Level Text | 1000 |
| Swing Weight: | 290 |
| Tour Proven | 1 |
啊....
我很想要这把拍啊!!!!!
midplus 100 square 300gram 刚刚好
市场价格 $ 199.90 美金
换到来还是需要马币 RM 695...
没有钱...
痛苦
Friday, August 03, 2007
不要 513
最近治安真的很差..
一个月的犯罪率不懂增加了多少.
犯案的非常多数是那些受保护却有不是面临绝种的马来同胞.
但是他们还是绝种比较好.
那样Alvin就会推选我做总统.
废除那个表面是Democracy 但是其实是 Communes 的structure.
一律回收所有RM 马币.
印新的钞票而且还是放我的我脸的.
想太爽.
以下是最新新闻,
又有奸杀案发生了.
就发生在Sg. Long UTAR 那里吧了.
在这里也请大家要小心.
小心513从演.
一个月的犯罪率不懂增加了多少.
犯案的非常多数是那些受保护却有不是面临绝种的马来同胞.
但是他们还是绝种比较好.
那样Alvin就会推选我做总统.
废除那个表面是Democracy 但是其实是 Communes 的structure.
一律回收所有RM 马币.
印新的钞票而且还是放我的我脸的.
想太爽.
以下是最新新闻,
又有奸杀案发生了.
就发生在Sg. Long UTAR 那里吧了.
在这里也请大家要小心.
小心513从演.
Thursday, August 02, 2007
怡保育才学生惡行 yuk choy violence
怡保育才学生惡行 yuk choy violence
打人的主角 : Kiwi Leong
打人的主角的Friendster : http://www.friendster.com/cutiekiwi
认识她的人说 :
by ivan8632
the beautiful like shit ,,kiwi.....
她以为她很美所以就乱乱打人。。现在被学校停学了。。yeah....他现在真是红过李丽珍
了。哈哈哈。活该。男人不会要你得。坏女生。如果你有男友。我希望他不要你。
丑kiwi...kiwi like shit...kiwi bull shit...kiwi eat shit...
看完之后..
发现.
原来要在Malaysia出名.
还有这种方法.
一夜成名.
还快过Superstar~
打人的主角 : Kiwi Leong
打人的主角的Friendster : http://www.friendster.com/cutiekiwi
认识她的人说 :
by ivan8632
the beautiful like shit ,,kiwi.....
她以为她很美所以就乱乱打人。。现在被学校停学了。。yeah....他现在真是红过李丽珍
了。哈哈哈。活该。男人不会要你得。坏女生。如果你有男友。我希望他不要你。
丑kiwi...kiwi like shit...kiwi bull shit...kiwi eat shit...
看完之后..
发现.
原来要在Malaysia出名.
还有这种方法.
一夜成名.
还快过Superstar~
Monday, July 30, 2007
MTA1 Experiment 1 Question 2a & 2b Solution
MTA1 Experiment 1 Question 2a & 2b Source Code
This few days I received some request.
Most of students couldn't solve the Exp1. 2a and 2b.
So, I will post up the source code for Experiment 1 Question 2a & 2b
Question 2a :
Convert the image ‘peppers.png’ into grayscale, and perform edge detection on the resulting gray image.
Source Code :
I = imread('peppers.png'); %read in an image
A = rgb2gray(I); %convert RGB to Gray format
CN = edge(A, 'canny'); %perform canny edge detection
figure, imshow(I);
figure, imshow(A);
figure, imshow(CN);
Note : This 2a used only canny is because you found that canny is the best edge detection operator for your image by result from Question 1.
Question 2b:
Perform edge detection on each of the three color bands of the image, followed by some fusion rule. Perform edge detection on each of the color bands of the ‘peppers.png’ image and combine the three edge images in order to get the final edge image.
What is the three color bands of the image ?
You are using true color image in this question, so the 3 bands would be RGB.
How to Separate the 3 color bands ?
Example :
R = (I(:,:,1));
G = (I(:,:,2));
B = (I(:,:,3));
Note : I is the read in image.
The 1 2 and 3 indicates the layer of the image.
How to perform edge detection on every layer (band) ?
As you saved each layer into R, G and B variable.
You just need to do edge detection on every R,G and B.
Example :
CN1 = edge(R, 'canny');
CN2 = edge(G, 'canny');
CN3 = edge(B, 'canny');
How to combine the 3 edge detected image into the final image ?
This part, you can use alot of operators.
such as : 'or' , 'and' , 'xor' , 'nand' and etc.
How to use the combination operator ?
Example for 'and' operator :
C = and(CN1,CN2);
D = and(C,CN3);
Example for 'or' operator :
C = or(CN1,CN2);
D = or(C,CN3);
Note : the operator can only have 2 arguments at a time.
So combining the CN1 and CN2 and store into C first, then combine C with CN3 and you will get the final solution and save it into variable D.
-End of Experiment1 2a 2b-
This few days I received some request.
Most of students couldn't solve the Exp1. 2a and 2b.
So, I will post up the source code for Experiment 1 Question 2a & 2b
Question 2a :
Convert the image ‘peppers.png’ into grayscale, and perform edge detection on the resulting gray image.
Source Code :
I = imread('peppers.png'); %read in an image
A = rgb2gray(I); %convert RGB to Gray format
CN = edge(A, 'canny'); %perform canny edge detection
figure, imshow(I);
figure, imshow(A);
figure, imshow(CN);
Note : This 2a used only canny is because you found that canny is the best edge detection operator for your image by result from Question 1.
Question 2b:
Perform edge detection on each of the three color bands of the image, followed by some fusion rule. Perform edge detection on each of the color bands of the ‘peppers.png’ image and combine the three edge images in order to get the final edge image.
What is the three color bands of the image ?
You are using true color image in this question, so the 3 bands would be RGB.
How to Separate the 3 color bands ?
Example :
R = (I(:,:,1));
G = (I(:,:,2));
B = (I(:,:,3));
Note : I is the read in image.
The 1 2 and 3 indicates the layer of the image.
How to perform edge detection on every layer (band) ?
As you saved each layer into R, G and B variable.
You just need to do edge detection on every R,G and B.
Example :
CN1 = edge(R, 'canny');
CN2 = edge(G, 'canny');
CN3 = edge(B, 'canny');
How to combine the 3 edge detected image into the final image ?
This part, you can use alot of operators.
such as : 'or' , 'and' , 'xor' , 'nand' and etc.
How to use the combination operator ?
Example for 'and' operator :
C = and(CN1,CN2);
D = and(C,CN3);
Example for 'or' operator :
C = or(CN1,CN2);
D = or(C,CN3);
Note : the operator can only have 2 arguments at a time.
So combining the CN1 and CN2 and store into C first, then combine C with CN3 and you will get the final solution and save it into variable D.
-End of Experiment1 2a 2b-
Hope this source code can help you out to continue the experiment
you can always drop me a comment or msg to complain or ask.
I wont be free for chatting through msn and ym because I got an exam on tuesday'night,
if you found any problem executing the code,
you can post in the comment part and i will try to solve for you later.
you can always drop me a comment or msg to complain or ask.
I wont be free for chatting through msn and ym because I got an exam on tuesday'night,
if you found any problem executing the code,
you can post in the comment part and i will try to solve for you later.
Copyrighted (c) 2007 , Law Ding Yong
Saturday, July 28, 2007
Thursday, July 26, 2007
ECP3086 MTA1 Coding Tutorials
ECP3086 Multimedia Technology Application
MTA1 Lab Report Code Writing Tutorials
Note :
Okay, at first.
I will assume everyone done the Experiment 1 -Q1 & Q2 , Experiment 2 -Q1.
I will give hints on Exp.1 -Q3 and Exp.2 -Q2 & Q3
Experiment 1 Question 3 :
Part a :
How to write a function ?
Example :
function []=FileName(argument1,argument2,argument3...)
Write this at the top of your codes,
The FileName above is the filename.m you saved as your work.
The argument1,argument2,argument3.. in the bracket is the files, values, images and ect. that you wanted to read in when you execute the function. You can have only 1 argument or more, use the comma ',' to separate the argument(s).
The [] above means void. You can define any variable to replace [].
How to use the function ?
Type the filename('imagename.xxx') to execute the function in your Matlab main window.
note : the xxx is the image format. eg. bmp, jpg, tif..
Part b:
How to check the image format ?
Code that can be use :
isrgb --- return true if image is RGB true color format
isgray --- return true if image is Gray format
isind --- return true if image is Indexed format
How to perform all 3 format checking on the image ?
The C language if-else statement can be use in this part.
Example :
if isgray(image)
perform the particular edge detect process;
elseif isrgb(image)
perform the particular edge detect process;
elseif isind(image)
perform the particular edge detect process;
else
fprintf('\n Format Error ! \n')
end
Note : image is the variable that stored the read in image.
Part c :
Same as Q1 and Q2
Part d :
How to display 2 image in the same figure ?
Example :
subplot(1,2,1), imshow(image1);
subplot(1,2,2), imshow(image2);
-End of Experiment 1-
Experiment 2 Question 2 :
Part a :
How to perform the DCT and quantization on all the channels ?
At first, you the rgb2ycbcr function to convert the RGB image into YCbCr image.
Store the YCbCr image in any well defined variable. eg. image2
Define a variable to store the Luminance,Y layer.
Define a variable to store the Crominance,Cb layer.
Define a variable to store the Crominance,Cr layer.
Example :
image2 = rgb2ycbcr(image);
Y = image2(:,:,1);
Cb = image2(:,:,2);
Cr = image2(:,:,3);
After that, perform blkproc on every layer and you will get a new value for every layer.
Store every new layer you get with the same variable. eg. compressed.
Example :
compressed(:,:,1)
compressed(:,:,2)
compressed(:,:,3)
At last, you will need to convert 'compressed' back to RGB format by using ycbcr2rgb.
Note : The system will auto combine all the layer in the same variable.
Part b :
What is 4:2:0 chroma sub-sampling ?
It is mean by compressing the image by using the YCbCr layer.
Keep the resolution of the Luminance, Y layer.
Resize the resolution of the Crominance, Cb & Cr layer into 50% of the original size.
After resize, perform blkproc on every layer and store the new value of every value using the same variable. (same as part a)
Remember to resize the new crominance layers back to the original size before storing into the variable.
After all, convert the YCbCr format back to RGB format.
Example :
Y = A2(:,:,1);
CB = imresize(A2(:,:,2),0.5);
CR = imresize(A2(:,:,3),0.5);
E(:,:,1) = D(:,:,1);
E(:,:,2) = imresize(D,2);
E(:,:,3) = imresize(D,2);
Experiment 2 Question 3 :
The hardest part in this Question is to calculate the SNR.
In this part, I wont repeat how to write function, if-else statement and subplot function.
Please refer the previous examples.
What is SNR ?
In mathematical way, the SNR is defined as
10 Log ( Average value of Square of original signal / Mean Square Error )
What is Average value of Square of original signal ?
Lets say your signal is an image.
The image is stored in variable I.
Average value of Square of original image = mean of the image power of 2.
Example :
ASI = mean(I.^2);
Note :
ASI is the Average value of Square of original image.
I is the variable stored the image.
What is Mean Square Error (MSE) ?
MSE is mean of square of differences between original image and compressed image
Example :
diff = I - I2;
MSE = mean(diff.^2);
Note :
I is the original image.
I2 is the compressed image.
diff is the difference between I and I2.
Last,
You can use Log10 as log of base 10 in Matlab.
You may ask why power of 2 need to be written as '.^2' ?
The dot '.' in front of ^2 is a must.
Because Matlab doesn't recognize '^2'.
The standard function of power of 2 for Matlab is '.^2'
-End of MTA1 coding tutorial-
MTA1 Lab Report Code Writing Tutorials
Note :
Okay, at first.
I will assume everyone done the Experiment 1 -Q1 & Q2 , Experiment 2 -Q1.
I will give hints on Exp.1 -Q3 and Exp.2 -Q2 & Q3
Experiment 1 Question 3 :
Part a :
How to write a function ?
Example :
function []=FileName(argument1,argument2,argument3...)
Write this at the top of your codes,
The FileName above is the filename.m you saved as your work.
The argument1,argument2,argument3.. in the bracket is the files, values, images and ect. that you wanted to read in when you execute the function. You can have only 1 argument or more, use the comma ',' to separate the argument(s).
The [] above means void. You can define any variable to replace [].
How to use the function ?
Type the filename('imagename.xxx') to execute the function in your Matlab main window.
note : the xxx is the image format. eg. bmp, jpg, tif..
Part b:
How to check the image format ?
Code that can be use :
isrgb --- return true if image is RGB true color format
isgray --- return true if image is Gray format
isind --- return true if image is Indexed format
How to perform all 3 format checking on the image ?
The C language if-else statement can be use in this part.
Example :
if isgray(image)
perform the particular edge detect process;
elseif isrgb(image)
perform the particular edge detect process;
elseif isind(image)
perform the particular edge detect process;
else
fprintf('\n Format Error ! \n')
end
Note : image is the variable that stored the read in image.
Part c :
Same as Q1 and Q2
Part d :
How to display 2 image in the same figure ?
Example :
subplot(1,2,1), imshow(image1);
subplot(1,2,2), imshow(image2);
-End of Experiment 1-
Experiment 2 Question 2 :
Part a :
How to perform the DCT and quantization on all the channels ?
At first, you the rgb2ycbcr function to convert the RGB image into YCbCr image.
Store the YCbCr image in any well defined variable. eg. image2
Define a variable to store the Luminance,Y layer.
Define a variable to store the Crominance,Cb layer.
Define a variable to store the Crominance,Cr layer.
Example :
image2 = rgb2ycbcr(image);
Y = image2(:,:,1);
Cb = image2(:,:,2);
Cr = image2(:,:,3);
After that, perform blkproc on every layer and you will get a new value for every layer.
Store every new layer you get with the same variable. eg. compressed.
Example :
compressed(:,:,1)
compressed(:,:,2)
compressed(:,:,3)
At last, you will need to convert 'compressed' back to RGB format by using ycbcr2rgb.
Note : The system will auto combine all the layer in the same variable.
Part b :
What is 4:2:0 chroma sub-sampling ?
It is mean by compressing the image by using the YCbCr layer.
Keep the resolution of the Luminance, Y layer.
Resize the resolution of the Crominance, Cb & Cr layer into 50% of the original size.
After resize, perform blkproc on every layer and store the new value of every value using the same variable. (same as part a)
Remember to resize the new crominance layers back to the original size before storing into the variable.
After all, convert the YCbCr format back to RGB format.
Example :
Y = A2(:,:,1);
CB = imresize(A2(:,:,2),0.5);
CR = imresize(A2(:,:,3),0.5);
E(:,:,1) = D(:,:,1);
E(:,:,2) = imresize(D,2);
E(:,:,3) = imresize(D,2);
Experiment 2 Question 3 :
The hardest part in this Question is to calculate the SNR.
In this part, I wont repeat how to write function, if-else statement and subplot function.
Please refer the previous examples.
What is SNR ?
In mathematical way, the SNR is defined as
10 Log ( Average value of Square of original signal / Mean Square Error )
What is Average value of Square of original signal ?
Lets say your signal is an image.
The image is stored in variable I.
Average value of Square of original image = mean of the image power of 2.
Example :
ASI = mean(I.^2);
Note :
ASI is the Average value of Square of original image.
I is the variable stored the image.
What is Mean Square Error (MSE) ?
MSE is mean of square of differences between original image and compressed image
Example :
diff = I - I2;
MSE = mean(diff.^2);
Note :
I is the original image.
I2 is the compressed image.
diff is the difference between I and I2.
Last,
You can use Log10 as log of base 10 in Matlab.
You may ask why power of 2 need to be written as '.^2' ?
The dot '.' in front of ^2 is a must.
Because Matlab doesn't recognize '^2'.
The standard function of power of 2 for Matlab is '.^2'
-End of MTA1 coding tutorial-
sorry for any grammar errors
(c) Copyrighted 2007, Law Ding Yong
Saturday, July 21, 2007
200 Pounds Beauty DVDrip & OST BT download

刚刚看了这套戏.
很好很好.
主角是一个拥有200Pounds体重的女生(Kim Ah Jung 释演)
有着天生的优美声线.
只是可惜没有性感的身材.
但是还好她遇到了一个重用她的经理.
所以她的工作是替一个叫Ammy的女歌手在幕后演唱...
而她为什么会变成美女.
大家自己去看看!
很棒的一套戏.
以下是这戏的trailer:
以下是BT下载: 200 Pounds Beauty BT
如果喜欢她的歌, 可以在这里BT下载: 200 Pounds Beauty OST BT
如果没有Seed了, 可以在我的Geocities那里下载.
但是很对不起Geocities只有15MB容量.
所以我只储存了里面的两首主要歌曲.
而且Geocities又有条件,每小时不能有超过5MB的Data Transfer.
所以如果下载失败请稍后再试.
谢谢!
Kim Ah Jung - Maria
Kim Ah Jung - Byul
给我钱
最近却钱
四个字
所以我去打了些散工
在highway toll派Kleenex tissue样本
还不错
工钱高.
但是还瞒危险的.
尤其是要过speed lane的时候.
那些车总是驾得很快.
但是还好
安然无恙的完成工作.
也安然无恙的领了薪金.
开开心心面对她妈的狗多的assignments,projects,midterms..
痛苦.
没有时间打tennis.
我要打tennis啊!!!!!
但是如果你给我钱我就不打.
钱比较好..
四个字
所以我去打了些散工
在highway toll派Kleenex tissue样本
还不错
工钱高.
但是还瞒危险的.
尤其是要过speed lane的时候.
那些车总是驾得很快.
但是还好
安然无恙的完成工作.
也安然无恙的领了薪金.
开开心心面对她妈的狗多的assignments,projects,midterms..
痛苦.
没有时间打tennis.
我要打tennis啊!!!!!
但是如果你给我钱我就不打.
钱比较好..
Sunday, July 08, 2007
Friday, July 06, 2007
新的Header
很就没有create新的blog header了.
用了新的方法做了这个新的.
之前的都是些outdated的科技.
毕竟7年前也没有多好的grafic design application.
虽然是同样的照片.
经过edit和调整.
焕然一新.
以上是以GIF format.
以下是WMV format.
请欣赏.
用了新的方法做了这个新的.
之前的都是些outdated的科技.
毕竟7年前也没有多好的grafic design application.
虽然是同样的照片.
经过edit和调整.
焕然一新.
以上是以GIF format.
以下是WMV format.
请欣赏.
Wednesday, June 13, 2007
Friday, June 08, 2007
这个假期
这个假期.
我非常非常尽力的让自己和家人过得开开心心.
但是我还是失败了.
不懂做错了什么.
被papa mama骂骂骂.
说我一直出街..
说别人的孩子懂得假期就去做工赚钱..
说自己不懂赚钱又喜欢驾车乱乱跑,浪费油..
我一直想.
从他们从europe回来之前或以后.
我都没有怎么出去.
过island也先去探望大舅.
出去那里都有先问先得到批准.
虽然这句话从一个22岁的人说出口,
会很滑稽.
但是这是家庭教育.
不想违抗让谁心伤生气.
因为脚底下的鞋都已经穿了5年.
鞋底烂得可以装水.
想在shopping mall里买一双新的鞋子.
也得拨个电话得到批准.
店里的staff用着另一种眼光看着我.
毕竟自己没有能力赚钱.
自己笑笑过就算了.
papa mama不在的一个星期里.
我要照顾两个大弟弟.
一个人做完所有家务.
准备早餐午餐晚餐.
而且还要是他们喜欢吃.
天天呆在家里.
读着在图书馆里借的communication system参考书.
准备下个sem的科目.
我没有任何怨言.
因为都是我应该做的.
一直到papa mama归来,
我还是一直笑着的.
要我做什么,
帮什么,
我没有任何意见就小笑着做就对了.
天天想说些什么让papa mama开心些.
一直很努力很努力很努力.
但是望着communication system的参考书.
这一页.
湿了.
如果没有察觉书湿了.
或许我也不懂自己流了眼泪.
泪流的时候.
我还是笑着的.
仍然笑着的.
我不要在家里发脾气.
刚好mama突然开门进来.
问我在做什么.
我答着
没什么的.
一滴眼泪.
夺走了读书的脑.
坐在床上.
想起童年.
我一直都认为自己没有一个好童年.
记忆中
50% 是藤鞭, 偏心, 吵架, 责骂, 跪地, 拉耳朵, 气喘病和形影不离的respolin, seberang jaya的emergency department, 山姜, 7次的离家出走, 小学4年纪的hyper tension, 6年纪自杀吞24颗paracetamol却死不去.
20% 是家里的piano和piano的椅子, piano上面的时钟, piano老师的恐怖, 学piano的地方, 考piano的E&O hotel, 学piano的地方附近的厕所, 学piano的地方楼下的糖果店.
20% 是中华总校小学, 小学老师的问候比较批评, 小学评审成绩, 小学评审总评君, 全班排名低过第十名不可以回家, 被避换去P班乐队班, 被P班乐队班排斥.
7 % 家, 家里的doggie, 一个星期只可以开两个小时的电视, 日本公园, 骑脚车掉进大水沟, 在大山脚Billion脚掉进水沟缝4针.
3 % 被称赞的开心?
没有责怪papa mama,
毕竟没有人天生就懂得照顾教导孩子.
经过几个孩子的教导方式,
渐渐年长,
渐渐成熟,
渐渐懂得怎样教导,
孩子也会一个比一个出色.
很可惜我是一个破例.
我是家里最差的.
论成绩就已经差了几个地球的距离.
更不用说掏人欢欣.
从小到大都很仰慕亦嫉妒自己的姐姐.
她总是很出色.
身边的长辈一直在比较.
问我怎么这么不争气.
我就干脆承认自己笨就是了.
自己的弟弟都比我出色.
我知道自己没有本事考进本地大学.
就连弟弟都说,
你现在读的学校也算大学?
或许他是不小心的.
但是我还是很伤心.
我真的这么差吗?
刚结束的sem,
我很努力很努力的.
上课总是坐第一排,
自己做完所有tutorial,
一个人做完group assignment,
奔波lecturer的房间请求指导.
考final饿是很早就开始准备的.
但是就是偏偏读最多的那科目,
考不好.
考试太紧张.
而且考题也难得夸张.
不是我夸张.
我是做完4年pass year来准备考试的.
历年的问题有能简单回答.
但是怎么今年的问题难酱多.
就连参考书课本都没有教过.
难得拿4 flat的机会都没有了.
没有人跟我讲话.
天天在一个人的家里.
真的会疯的.
这种努力真的很累.
真的很累很泪.
我非常非常尽力的让自己和家人过得开开心心.
但是我还是失败了.
不懂做错了什么.
被papa mama骂骂骂.
说我一直出街..
说别人的孩子懂得假期就去做工赚钱..
说自己不懂赚钱又喜欢驾车乱乱跑,浪费油..
我一直想.
从他们从europe回来之前或以后.
我都没有怎么出去.
过island也先去探望大舅.
出去那里都有先问先得到批准.
虽然这句话从一个22岁的人说出口,
会很滑稽.
但是这是家庭教育.
不想违抗让谁心伤生气.
因为脚底下的鞋都已经穿了5年.
鞋底烂得可以装水.
想在shopping mall里买一双新的鞋子.
也得拨个电话得到批准.
店里的staff用着另一种眼光看着我.
毕竟自己没有能力赚钱.
自己笑笑过就算了.
papa mama不在的一个星期里.
我要照顾两个大弟弟.
一个人做完所有家务.
准备早餐午餐晚餐.
而且还要是他们喜欢吃.
天天呆在家里.
读着在图书馆里借的communication system参考书.
准备下个sem的科目.
我没有任何怨言.
因为都是我应该做的.
一直到papa mama归来,
我还是一直笑着的.
要我做什么,
帮什么,
我没有任何意见就小笑着做就对了.
天天想说些什么让papa mama开心些.
一直很努力很努力很努力.
但是望着communication system的参考书.
这一页.
湿了.
如果没有察觉书湿了.
或许我也不懂自己流了眼泪.
泪流的时候.
我还是笑着的.
仍然笑着的.
我不要在家里发脾气.
刚好mama突然开门进来.
问我在做什么.
我答着
没什么的.
一滴眼泪.
夺走了读书的脑.
坐在床上.
想起童年.
我一直都认为自己没有一个好童年.
记忆中
50% 是藤鞭, 偏心, 吵架, 责骂, 跪地, 拉耳朵, 气喘病和形影不离的respolin, seberang jaya的emergency department, 山姜, 7次的离家出走, 小学4年纪的hyper tension, 6年纪自杀吞24颗paracetamol却死不去.
20% 是家里的piano和piano的椅子, piano上面的时钟, piano老师的恐怖, 学piano的地方, 考piano的E&O hotel, 学piano的地方附近的厕所, 学piano的地方楼下的糖果店.
20% 是中华总校小学, 小学老师的问候比较批评, 小学评审成绩, 小学评审总评君, 全班排名低过第十名不可以回家, 被避换去P班乐队班, 被P班乐队班排斥.
7 % 家, 家里的doggie, 一个星期只可以开两个小时的电视, 日本公园, 骑脚车掉进大水沟, 在大山脚Billion脚掉进水沟缝4针.
3 % 被称赞的开心?
没有责怪papa mama,
毕竟没有人天生就懂得照顾教导孩子.
经过几个孩子的教导方式,
渐渐年长,
渐渐成熟,
渐渐懂得怎样教导,
孩子也会一个比一个出色.
很可惜我是一个破例.
我是家里最差的.
论成绩就已经差了几个地球的距离.
更不用说掏人欢欣.
从小到大都很仰慕亦嫉妒自己的姐姐.
她总是很出色.
身边的长辈一直在比较.
问我怎么这么不争气.
我就干脆承认自己笨就是了.
自己的弟弟都比我出色.
我知道自己没有本事考进本地大学.
就连弟弟都说,
你现在读的学校也算大学?
或许他是不小心的.
但是我还是很伤心.
我真的这么差吗?
刚结束的sem,
我很努力很努力的.
上课总是坐第一排,
自己做完所有tutorial,
一个人做完group assignment,
奔波lecturer的房间请求指导.
考final饿是很早就开始准备的.
但是就是偏偏读最多的那科目,
考不好.
考试太紧张.
而且考题也难得夸张.
不是我夸张.
我是做完4年pass year来准备考试的.
历年的问题有能简单回答.
但是怎么今年的问题难酱多.
就连参考书课本都没有教过.
难得拿4 flat的机会都没有了.
没有人跟我讲话.
天天在一个人的家里.
真的会疯的.
这种努力真的很累.
真的很累很泪.
Thursday, May 31, 2007
Friday, May 11, 2007
Thursday, May 10, 2007
飘着
空气中
呼吸都凝着
我让思考放空
看你转身上楼
我知道
这就是答案了
还能怎么感受
那残余的温柔
当黑夜清晰过白昼
当快乐赔上了所有
当理智熬不过放纵
你的神色什么都淡了
我还守着爱飘着
da la la la...
你回头
就像往常笑着
好像在原谅我
绑住你的自由
当黑夜清晰过白昼
当快乐赔上了所有
当理智熬不过放纵
我的神色什么都算了
却还守着爱飘着
错在明知是错
快乐该怎么选择
我爱错
我只能选择沉默
不该嘶吼
当盲目的黑夜
清晰过白昼
当奢侈的快乐
赔上了所有
当假装的理智
熬不过放纵
每个路口
怎么转都错
我进退不得
谁救我
飞不进你梦中
偷一点感受
飞不回原来我
冰冷的躯壳
就这样漂浮着
悲伤的穿梭
感觉掏空
灵魂不在了
爱情突然失重
在飘着
da la la la...
呼吸都凝着
我让思考放空
看你转身上楼
我知道
这就是答案了
还能怎么感受
那残余的温柔
当黑夜清晰过白昼
当快乐赔上了所有
当理智熬不过放纵
你的神色什么都淡了
我还守着爱飘着
da la la la...
你回头
就像往常笑着
好像在原谅我
绑住你的自由
当黑夜清晰过白昼
当快乐赔上了所有
当理智熬不过放纵
我的神色什么都算了
却还守着爱飘着
错在明知是错
快乐该怎么选择
我爱错
我只能选择沉默
不该嘶吼
当盲目的黑夜
清晰过白昼
当奢侈的快乐
赔上了所有
当假装的理智
熬不过放纵
每个路口
怎么转都错
我进退不得
谁救我
飞不进你梦中
偷一点感受
飞不回原来我
冰冷的躯壳
就这样漂浮着
悲伤的穿梭
感觉掏空
灵魂不在了
爱情突然失重
在飘着
da la la la...
Tuesday, May 08, 2007
穿越時空的少女

如果你有10个穿越时空的机会...
前天看了着部动画.
很不错的.
画功像宮崎俊的模式.
知识稍微输在配乐.
这种动画.
没有Joe Hisaishi的曲总是不自在.
我没有很细心的文笔.
更多细节请查看以下网址.
http://mformyself.blogspot.com/2007/05/blog-post.html
Sunday, April 22, 2007
友情
夜
难眠.
不懂怎么.
明明很累了.
却想起了往事.
17岁的日子.
是开心多些.
还是心伤多些.
刚刚看了几个中学好朋友的blog.
大家都变了.
不说话的变得乱说话.
三份之一赃话, 三份之一废话, 三份只一不像话.
最害羞的竟然打耳洞+染头发.
也较勇敢面对自己的感觉.
曾经是天才的,
现在经已习惯性的敷衍自己的人生.
曾经的乖乖仔,
现在却因为压力开始抽瘀.
大家曾经的梦想.
和今日相比.
也不如路边卖云吞面的阿叔来的高贵.
光阴似箭.
其实不想用这个形容词.
但是语言知识范围有限.
只能用小学生的形容词.
好了.
回归话题.
光阴似箭.
2002年的情景
似天涯.
但闭上双眼.
却历历在目.
仿佛只要稍微向前走.
就能回到从前.
看了大家的部落.
后来发现.
大家都盼望幸福.
但
幸福又是什么呢?
如果你要我用物理衡量幸福.
我会告诉你.
虽然我是物理系.
但是很抱歉, 本人知识有限.
未能解决你的问题.
或许
真正的幸福
是我经已能够停下脚步
微笑的承认
我曾经是幸福的
难眠.
不懂怎么.
明明很累了.
却想起了往事.
17岁的日子.
是开心多些.
还是心伤多些.
刚刚看了几个中学好朋友的blog.
大家都变了.
不说话的变得乱说话.
三份之一赃话, 三份之一废话, 三份只一不像话.
最害羞的竟然打耳洞+染头发.
也较勇敢面对自己的感觉.
曾经是天才的,
现在经已习惯性的敷衍自己的人生.
曾经的乖乖仔,
现在却因为压力开始抽瘀.
大家曾经的梦想.
和今日相比.
也不如路边卖云吞面的阿叔来的高贵.
光阴似箭.
其实不想用这个形容词.
但是语言知识范围有限.
只能用小学生的形容词.
好了.
回归话题.
光阴似箭.
2002年的情景
似天涯.
但闭上双眼.
却历历在目.
仿佛只要稍微向前走.
就能回到从前.
看了大家的部落.
后来发现.
大家都盼望幸福.
但
幸福又是什么呢?
如果你要我用物理衡量幸福.
我会告诉你.
虽然我是物理系.
但是很抱歉, 本人知识有限.
未能解决你的问题.
或许
真正的幸福
是我经已能够停下脚步
微笑的承认
我曾经是幸福的
Wednesday, April 11, 2007
FFXIII & FFXIII versus trailer
Final Fantasy XIII versus trailer :
Final Fantasy XIII trailer :
FFXIII trailer still pending by youtube official.
I just converted and uploaded.
enjoy :)
Final Fantasy XIII trailer :
FFXIII trailer still pending by youtube official.
I just converted and uploaded.
enjoy :)










