[作業] 演算法作業三

看板b93902HW作者 (昂首千丘遠)時間20年前 (2005/12/08 16:21), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/5 (看更多)
1.如果我們要處理的是灰階照片的話,裡面每個元素不是一個byte嗎?為什麼我們的 prototype是: void DCT(int **Input, int inputSIZE, char *FileName); void IDCT(char *FileName, int *outputSIZE, int **Output); 還是助教會處理成我們能用的格式? Ans: 因為整數的範圍為[0,255],所以我們視為一Byte。 2.關於照片部份,因為之前沒有處理過這種問題,那我們讀檔的方法就是把照片檔當成二 維矩陣來處理嗎? 直接用fread來讀嗎? Ans: 我們會用陣列方式傳給你們。 3.作業網頁上要我們hand in的程式prototype有兩種 /* B90902089 12345678 C */ void DCT(int **Input, int inputSIZE, int *Output) { ... } 跟 void DCT(int **Input, int inputSIZE, char *FileName); 到底是那一種呢? Ans: 以這個為主, void DCT(int **Input, int inputSIZE, char *FileName); void IDCT(char *FileName, int *outputSIZE, int **Output); 晚一點我再修改 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.118.175.170

12/08 16:50, , 1F
如果自己想測的話 能多透露點main function的infor嗎?
12/08 16:50, 1F
文章代碼(AID): #13b-qABs (b93902HW)
文章代碼(AID): #13b-qABs (b93902HW)