- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 https://imebra.com/在我的应用程序中,当我加载本地文件时,它会读取 DICOM 文件并且我能够看到图像。什么时候,我向 imebra 发送 Cloud url 路径它显示错误,下面我分享了示例代码。我想向 Imebra 发送一个或多个 url。我不知道该怎么做。
let filePath = Bundle.main.path(forResource: fileName, ofType: "dcm") // i want to send url(https://raw.githubusercontent.com/ivmartel/dwv/master/tests/data/bbmri-53323851.dcm) here
let dataSet = try ImebraCodecFactory.load(fromFile: filepath)
_ = try dataSet.getString(ImebraTagId(group: 0x10, tag: 0x10), elementNumber: 0, defaultValue: "")
_ = try dataSet.getString(ImebraTagId(group: 0x10, tag: 0x10), elementNumber: 1, defaultValue: "")
最佳答案
Imebra 可以加载本地 DICOM 文件或从远程 PACS(使用 DIMSE 协议(protocol))。
Imebra 无法直接从 URL 加载图像,因为它使用 posix 调用来打开本地文件。
要从 URL 打开文件,您应该首先加载远程文件。看到这个答案Simple Swift file download with URL查看如何将文件加载到本地临时文件。
或者,您可以将文件加载到 NSData 对象并将其内容传递给 Imebra Memory 对象,然后使用 MemoryStreamInput 将 StreamReader 传递给 ImebraCodecFactory。
免责声明:我是 Imebra 的作者
关于ios - 在 iOS 的 Imebra 中加载服务器 URL dicom 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60260040/
我使用 Imerba 库读取 DICOM 文件。我需要访问像素,以便我可以在低级别修改它们。文档说:“为了访问图像的像素,您必须检索数据处理程序”还有一个例子: imbxUint32 rowSize,
我有自己的图像编码器和解码器。我想要的是读取 DICOM 图像,提取未压缩的图像像素,使用我的编码器压缩它们,然后将这些压缩像素写回到 DICOM 文件中以代替未压缩像素。解码器会做相反的事情。这可以
我正在使用 https://imebra.com/在我的应用程序中,当我加载本地文件时,它会读取 DICOM 文件并且我能够看到图像。什么时候,我向 imebra 发送 Cloud url 路径它显示
我想在 iOS 平台上使用 imebra 库创建或将 jpeg 图像转换为 dicom 图像。在库的 objective-c 示例中,给出了将 dicom 转换或读取为 jpeg 的步骤,但是,我正在
我是一名优秀的程序员,十分优秀!