【发布时间】:2020-02-17 10:06:31
【问题描述】:
我在我的应用程序中使用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: "")
提前致谢。
【问题讨论】:
-
嗨,我在我的项目中集成了 libimebra.a 文件。我已经在构建设置中添加了搜索路径,并在链接二进制文件中添加了库。尽管我得到了以下错误“使用未解析的标识符'ImebraCodecFactory'”。请提供任何帮助或建议。提前致谢
标签: ios swift iphone dicom imebra