我正在尝试使用其中一个开源项目进行体积渲染。我想从我的DICOM图像创建一个表面文件。我知道这可以通过使用芒果查看器exe;但我想用javascript做。请帮帮我。
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<link rel="stylesheet" type="text/css" href="papaya.css" />
<script type="text/javascript" src="papaya.js"></script>
<script type="text/javascript">
var finalImages = [];
var images = window.opener.imageIds;
for (var i = 0; i < images.length; i++)
{
if (images[i].substr(0, 8) == "dicomweb")
{
temp = images[i].substr(9, images[i].length);
//images[i] = "http:" + images[i];
finalImages.push("http:" + temp);
}
}
var params = [];
params["images"] = [finalImages];
params["surfaces"] = [];
</script>
<title>Papaya Viewer</title>
</head>
<body>
<div class="papaya" data-params="params">
</div>
</body>
</html>