DcmPixelData Class Reference
Detailed Description
The class DcmPixelData stores different pixel representations identified by a type (the transfer syntax) and some representation parameters The three unencapsulated transfer syntaxes belong to the same pixel representation.A type (or transfer syntax) conforms to a representation if thetypeand therepresentation type are equal or both are unencapsulated. If this is valid for the representation read or set by choose Representation then this representation is the conforming representation. else a representation with the default parameter set defined in the codec is the conforming representation.
typedef struct DicomElem
{
short int group_tag,
short int element_tag,
char VR[4],
int length,
char data[128]
} DicomElem;
0002组描述设备通讯,0008组描述特征参数,0010组描述患者信息,0028组描述图像信息参数
所有双数组编号提供DICOM数据字典的供标准 数据使用,所有单数组编号供私用数据使用。
ISO-OSI(Inter-national Standard Organization-Open System Interconnection)和TCP/IP (Transmission Control Protocol / Internet Protocol)
信息对象定义(Information Ob-ject Definition,IOD)
服务对象对(Service Object Pair,SOP)
TCP/IP: 是传输控制协议/互联网协议
在DICOM标准的制定中,主要采用了在实际中广泛使用的TCP/IP协议和影响较大的OSI网络
协议,作为对DICOM网络支持的基础。在这两个协议之上分别定义了DICOM自己的基于消息
的信息交换的上层协议DIMSE (Dicom Message Service Element)。
以上参考:http://blog.163.com/yeruining@126/blog/static/83484469201246113948679/
以上定义见文档File2P16
Meta Element Group Length (0002,0000) 1 UL
File Meta Information Version (0002,0001) 1 OB
Media Storage SOP Class UID (0002,0002) 1 UI
Media Storage SOP Instance UID (0002,0003) 1 UI
Transfer Syntax UID (0002,0010) 1 UI
Implementation Class UID (0002,0012) 1 UI
Implementation Version Name (0002,0013) 1 SH
Source Applica... Entity Title (0002,0016) 1 AE
dicom格式文件 界定标识符的处理
讲怎样去处理文件里一种特殊的数据元素:那就是VR为SQ类型的元素 还有delimited 也就是界定标识符。
http://www.th7.cn/Program/net/201305/137023.shtml
DICOM文件格式与编程
http://hi.baidu.com/diqiucun666/item/c2079909046f1f6cd55a1157
dicom文件 tag值读取·
http://www.cnblogs.com/assassinx/archive/2013/01/09/dicomViewer.html
http://www.cnblogs.com/assassinx/archive/2013/01/09/dicomViewer.html#2929863
普通tag的读取方式 little字节序还是big字节序 隐式VR还是显示VR。由它的值决定 。 这块内容好好看看!!!!
dicom数据结构和编码
http://write.blog.csdn.net/postedit/23919401 个人感觉这篇文章不错。
(1) VR即Value Representation 翻译过来的意思就是值的表达方式,其实就类似于软件的数据类型,如int,string类型。它是由2个单字节字符表示,如'AE'表示这是AE Title类型的数据。VR在实际存储编码中不一定会有,这取决于采用的transfer syntax(传输语法),采用implicit little endian的语法时,VR是没有的,这就需要软件系统自己有套字典可以根据(2)Tag去查找VR 。Value Length: 就是Value Field的长度,以字节为单位。Value Field: 值域,字节长度必须为偶数。
BIG/LITTLE Endian影响的是多字节类型数据的字节编码顺序Little Endian: 最低字节先编码。Big Endian: 最高字节先编码
2-byte US, SS, OW,AT 4-byte OF, UL, SL, FL 8 byte FD
例如: 8-byte FD的数据6789ABCD, 对于单字节类型的数据,如字符串或者其他字节型数据没有影响,以下VR类型的受影响:在little endian编码下是CDAB8967, 在BIG endian编码下是6789ABCD.这个区别非常重要,尤其在实现dicom数据编解码功能时,一定要注意判断,通过字节交换统一为一样的数据格式,否则同样的数据在不同的平台下会得出不同的结果。
http://bbs.hc3i.cn/thread-5526-1-1.htmlhttp://bbs.hc3i.cn/tag-DCMTK.html