我們的期末專案是 宇宙世界地球陸海空三軍聯合特別行動之擋隕石
2012年6月13日 星期三
2012年5月10日 星期四
2012年4月20日 星期五
期中專案
這次的期中專案很有趣,要將學到的東西都在一起
要有好玩又可行的點子不是那麼簡單,要運用創意和想像力才能做出特別的專題,接下來還要有好用的UI和美工,程式的編寫能力也不能太差等等
完成一個專案需要很多元素,希望我們能把專案做的更好
2012年3月22日 星期四
2012年3月1日 星期四
HW03
Bug:
for (int y=0; y<logoImg->height; y++) {
uchar* ptr1=(uchar*) (logoImg->imageData +y*logoImg->widthStep);
uchar* ptr2=(uchar*) (mergeImg->imageData +(y+y1)*mergeImg->widthStep);
for (int x=0; x<logoImg->width; x++) {
ptr2[3*(x+x1)]=alpha*ptr1[3*(x+x1)] + (1-alpha)*ptr2[3*(x+x1)];
ptr2[3*(x+x1)+1]=alpha*ptr1[3*(x+x1)+1] + (1-alpha)*ptr2[3*(x+x1)+1];
ptr2[3*(x+x1)+2]=alpha*ptr1[3*(x+x1)+2] + (1-alpha)*ptr2[3*(x+x1)+2];
}
}
應改成
for (int y=0; y<logoImg->height; y++) {
uchar* ptr1=(uchar*) (logoImg->imageData +y*logoImg->widthStep);
uchar* ptr2=(uchar*) (mergeImg->imageData +(y+y1)*mergeImg->widthStep);
for (int x=0; x<logoImg->width; x++) {
ptr2[3*(x+x1)]=alpha*ptr1[3*x] + (1-alpha)*ptr2[3*(x+x1)];
ptr2[3*(x+x1)+1]=alpha*ptr1[3*x+1] + (1-alpha)*ptr2[3*(x+x1)+1];
ptr2[3*(x+x1)+2]=alpha*ptr1[3*x+2] + (1-alpha)*ptr2[3*(x+x1)+2];
}
}
心得:
這次的作業很好玩,了解運作方式後很快就改好了。
把LOGO放進影片感覺很實用,希望可以學到更多東西。
2012年2月16日 星期四
訂閱:
文章 (Atom)












