DICOM ファイルの読み取りに問題があります。これは 1.2.840.10008.1.2.4.70 の形式です (一次予測 (選択値 1) を使用したプロセス 14)。私は自分でソフトウェアを作成しています。
ここに私の仕事の結果があります。
.dcm ファイルもお渡しします。
何が問題なのですか?RadiAnt Dicom Viewer だけが正しく開きます (ソース コードを含む動作するソフトウェアは見つかりませんでした)。誰かにそれについてのチュートリアルがありますか? 動作するコードはありますか?
とても感謝しています!手伝ってくれてありがとう。
私はそれがどのように行うかを示します:
//I have:
numCOL= imageWidth;
numROW= imageHeight;
dwCurrentBufferLength;//-> where I in file
//and other stuff...
//First i decode first row:
//[0][0]
DecodeFirstRow(curRowBuf,dwCurrentBufferLength);
//I calculate difrences
HuffDecode ( table , &val, dwCurrentBufferLength);
//and extend
HuffExtend(extend, val);
curRowBuf[0][curComp]=extend+(1<<(Pr-Pt-1));
//[1-n][0]
//... huff stuff
curRowBuf[col][curComp]=extend+curRowBuf[col-1][curComp];
//Then i put row to the vector:
for (col = 0; col < numCol; col++)
{
v=RowBuf[col][0]<<point_transform_parameter;
m_vOutputBuf.push_back(v);
}
//Rest of columns
//[0][m]
curRowBuf[0][curComp]=extend+prevRowBuf[0][curComp];
predictor = left =curRowBuf[leftcol][curComp];
//[1-n][m]
curRowBuf[col][curComp]=extend+predictor;
//and also put it to vector ^^
この1000をどこでサブする必要がありますか??