[問題] RAW Sequence 轉 Single問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC++
問題(Question):
這程式是前人寫的可將CT掃描機的檔案(5xx張影像)直接存出的一個大檔案轉成
單張影像檔案
程式原本可正常,但因後續須加入其他function,需include afx.h
但是當有include afx.h,且framecounts大於468張
就會出現錯誤: http://imgur.com/5nNnw6X
![](https://i.imgur.com/5nNnw6X.jpg)
debug發現程式跑到52行的
fread( pSequenceImage , 2*sizeof(unsigned char),
SizeForSeqIma_UShort, fPSequence);
即出錯
設定467張以內都可執行,超過467張就會出錯
感覺應是記憶體問題,但不知道該如何修改
但納悶的是為何在include afx.h後才會出錯
謝謝各位高手!
餵入的資料(Input):
RAW Sequence,容量大小約1.5GB,內含CT掃描機連續拍攝的約520張影像
預期的正確結果(Expected Output):
在include afx.h後,framecounts設定>=468也可執行
程式碼(Code):(請善用置底文網頁, 記得排版)
http://nopaste.info/64d0cfd252.html
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 202.39.79.208
※ 編輯: xshane831 來自: 202.39.79.208 (03/25 09:08)