dicom图像信息

`
**double*** sp = source->GetOutput()->GetSpacing(); **int*** dims = source->GetOutput()->GetDimensions(); **int*** exts = source->GetOutput()->GetWholeExtent(); **double*** bounds = source->GetOutput()->GetBounds();
cout << sp[0] << "\t" <<  sp[1] <<"\t" << sp[2] << endl; 
cout << dims[0] << "\t" << dims[1] << "\t" <<dims[2] << endl; 
cout << exts[0] << "\t" << exts[1] << "\t" <<exts[2] << endl;  cout << exts[3] << "\t" << exts[4] << "\t" <<exts[5] << endl; 
cout << bounds[0] << "\t" << bounds[1] << "\t" <<bounds[2] << endl;  cout << bounds[3] << "\t" << bounds[4] << "\t" <<bounds[5] << endl; 
`
输出结果为:
`
0.488281        0.488281        3            //spacing信息 像素距离(mm单位) 512     512     1                            //图像分辨率大小512x512
0       511     0                             //图像x,y,z的index   
511     0       0                             //x:0~511
0       249.512 0                             //spacing * index
249.512 0       0                             //可以理解为物理尺寸249.512mm
`
[来自为知笔记(Wiz)](http://www.wiz.cn/i/c09d0bb5 "来自为知笔记(Wiz)")
坚持原创技术分享,您的支持将鼓励我继续创作!