从 AWS 中的 S3 存储桶加载带有 cornerstone js 的 dicom 文件

Load a dicom file with cornerstone js from an S3 bucket in AWS

我需要从存储在 AWS 的 S3 存储桶中的 dicom 文件加载图像。我正在使用 cornerstone js 和 reactjs。

我知道如何从我的本地目录加载图像,但我不知道如何从云端检索它们。我一直在寻找解决方案,但没有一个对我有用。

您应该使用 cornerstoneWADOImageLoader 将 DICOM 图像加载到基础查看器中。

这将允许您使用 URL 加载 DICOM 文件 您可以通过直接从您的 AWS S3 粘贴 link 来查看示例,只需确保启用了 CORS 并且它可以在 AWS 中访问:https://rawgit.com/cornerstonejs/cornerstoneWADOImageLoader/master/examples/wadouri/index.html

示例源代码可以在这里找到:https://github.com/cornerstonejs/cornerstoneWADOImageLoader/blob/master/examples/wadouri/index.html