Constructor
new DICM(bf)
构造函数
Parameters:
Name | Type | Description |
---|---|---|
bf |
ArrayBuffer | 二进制数据 |
- Source:
Methods
attricodetovr(attrcode) → {string}
attricodetovr,将属性代码转换为VR。
Parameters:
Name | Type | Description |
---|---|---|
attrcode |
string | 属性代码。 |
- Source:
Returns:
- 对应的VR。
- Type
- string
getdata() → {Object}
getdata,获取图像数据。
- Source:
Returns:
- 包含图像数据信息的对象。
- height {number} - 图像高度。
- width {number} - 图像宽度。
- channel {number} - 图像通道数。
- array {Array} - 图像数据数组。
- Type
- Object
toImgArray() → {ImgArray}
toImgArray,将图像数据转换为ImgArray对象。
- Source:
Returns:
- 包含图像数据的ImgArray对象。
- Type
- ImgArray
vrparse(vr, arr, islitteendian) → {string|number}
vrparse,解析VR。
Parameters:
Name | Type | Description |
---|---|---|
vr |
string | VR 的字符串表示。 |
arr |
Uint8Array | 要解析的数组。 |
islitteendian |
boolean | 是否采用小端字节序。 |
- Source:
Returns:
- 解析后的值。
- Type
- string | number
(async, static) fromurl(url) → {Promise.<DICM>}
fromurl,从URL中加载DICM文件。
Parameters:
Name | Type | Description |
---|---|---|
url |
string | 文件的URL地址。 |
- Source:
Returns:
- 返回一个 Promise,resolve 时返回一个 DICM 对象。
- Type
- Promise.<DICM>