首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用cornerstone加载dicom图像

无法使用cornerstone加载dicom图像
EN

Stack Overflow用户
提问于 2015-09-16 08:39:27
回答 1查看 3.9K关注 0票数 1

我正在尝试使用基石库加载一个dicom图像。我得到一个错误-未捕获的异常: loadImage:没有用于imageId的图像加载器。我将图像文件命名为image-1.dcm。我做错了什么?

下面是我的代码:

代码语言:javascript
复制
<!DOCTYPE HTML>
<html>
<head>
    <!-- twitter bootstrap CSS stylesheet - not required by cornerstone -->
    <link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">

<h1>
jsminimal/index.html
</h1>

This is an example of the minimal use of cornerstone driven by javascript

<br>
<br>

In this example, javascript is used to image enable a div.

<br>
<br>


<div id="dicomImage" style="width:512px;height:512px;">
</div>

</div>
</body>

<!-- cornerstone depends on jQuery so it must be loaded first-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- include the cornerstone library -->
<script src="cornerstone-master/dist/cornerstone.js"></script>

<!-- include special code for these examples which provides images -->
<script src="cornerstone-master/example/exampleImageIdLoader.js"></script>

<script>

    $(document).ready(function() {
        var imageId = 'image-1';
        var element = document.getElementById('dicomImage');
        cornerstone.enable(element);
        cornerstone.loadImage(imageId).then(function(image) {
            cornerstone.displayImage(element, image);
        });
    });

</script>
</html>
EN

回答 1

Stack Overflow用户

发布于 2015-09-16 08:47:20

您需要使用cornerstoneWADOImageLoader来加载DICOM P10:

https://github.com/chafey/cornerstoneWADOImageLoader

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32597891

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档