.
This commit is contained in:
+8
-2
@@ -705,7 +705,7 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadCornerstoneMainImage(element, image, stack, db, load_as_stack) {
|
function loadCornerstoneMainImage(element, image, stack, db, load_as_stack) {
|
||||||
dumpDataSet(image.data)
|
//dumpDataSet(image.data)
|
||||||
console.log("loadCornerstoneMainImage")
|
console.log("loadCornerstoneMainImage")
|
||||||
console.log("load as stack:", load_as_stack)
|
console.log("load as stack:", load_as_stack)
|
||||||
// It is probably silly to do this each time we load a question
|
// It is probably silly to do this each time we load a question
|
||||||
@@ -904,7 +904,13 @@ async function loadAltDicomInterface(db) {
|
|||||||
function onImageRendered(e) {
|
function onImageRendered(e) {
|
||||||
const eventData = e.detail;
|
const eventData = e.detail;
|
||||||
//console.log(e);
|
//console.log(e);
|
||||||
dumpDataSet(eventData.image.data)
|
try {
|
||||||
|
// todo improve
|
||||||
|
dumpDataSet(eventData.image.data);
|
||||||
|
} catch {
|
||||||
|
console.log("unable to extract dicom data")
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// Update ww/wl
|
// Update ww/wl
|
||||||
$("#wc").text(Math.round(eventData.viewport.voi.windowCenter));
|
$("#wc").text(Math.round(eventData.viewport.voi.windowCenter));
|
||||||
|
|||||||
+2
-2
@@ -25,8 +25,8 @@
|
|||||||
<h1>A dicom viewer</h1>
|
<h1>A dicom viewer</h1>
|
||||||
|
|
||||||
<!-- <div id="dicom-viewer" class="dicom-viewer" style="height: 600px;" data-images='["test_images/IMG1.dcm","test_images/IMG1.dcm"]' data-annotations='["{\"ArrowAnnotate\":{\"data\":[{\"visible\":true,\"active\":false,\"handles\":{\"start\":{\"x\":450.01249999999993,\"y\":592.8031510416666,\"highlight\":true,\"active\":false},\"end\":{\"x\":283.38750000000005,\"y\":343.976484375,\"highlight\":true,\"active\":false,\"moving\":false},\"textBox\":{\"active\":false,\"hasMoved\":false,\"movesIndependently\":false,\"drawnIndependently\":true,\"allowedOutsideImage\":true,\"hasBoundingBox\":true}},\"uuid\":\"51ca68b0-734c-4046-b3da-dd2886496fd5\",\"invalidated\":true}]}}", null]'></div></div> -->
|
<!-- <div id="dicom-viewer" class="dicom-viewer" style="height: 600px;" data-images='["test_images/IMG1.dcm","test_images/IMG1.dcm"]' data-annotations='["{\"ArrowAnnotate\":{\"data\":[{\"visible\":true,\"active\":false,\"handles\":{\"start\":{\"x\":450.01249999999993,\"y\":592.8031510416666,\"highlight\":true,\"active\":false},\"end\":{\"x\":283.38750000000005,\"y\":343.976484375,\"highlight\":true,\"active\":false,\"moving\":false},\"textBox\":{\"active\":false,\"hasMoved\":false,\"movesIndependently\":false,\"drawnIndependently\":true,\"allowedOutsideImage\":true,\"hasBoundingBox\":true}},\"uuid\":\"51ca68b0-734c-4046-b3da-dd2886496fd5\",\"invalidated\":true}]}}", null]'></div></div> -->
|
||||||
<!-- <div id="dicom-viewer" class="dicom-viewer" style="height: 600px;" data-images='["test_images/IMG1.dcm", "test_images/IMG2.dcm"]' data-annotations=''></div></div> -->
|
<div id="dicom-viewer" class="dicom-viewer" style="height: 600px;" data-images='["test_images/IMG1.dcm", "test_images/IMG2.dcm", "test_images/IMG3.dcm", "test_images/IMG4.dcm", "test_images/IMG5.dcm", "test_images/IMG6.dcm"]' data-annotations=''></div></div>
|
||||||
<div id="dicom-viewer" class="dicom-viewer" style="height: 600px;" data-images='["test_images/CXR.dcm"]' data-annotations=''></div></div>
|
<!-- <div id="dicom-viewer" class="dicom-viewer" style="height: 600px;" data-images='["test_images/CXR.dcm"]' data-annotations=''></div></div> -->
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
<footer></footer>
|
<footer></footer>
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 87 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 130 KiB |
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user