看板 b93902HW 關於我們 聯絡資訊
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
JAMES299:如果自己想測的話 能多透露點main function的infor嗎? 12/08 16:50