LEADTOOLS Support
Medical
Medical SDK Examples
HTML5 Medical Web Viewer that only window levels extended grayscale data
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, August 10, 2012 12:31:09 PM(UTC)
Groups: Registered, Tech Support
Posts: 207
Was thanked: 3 time(s) in 3 post(s)
The attached files illustrate how to use our HTML5 Medical Web Viewer to simply window level extended grayscale images.
The files consist of the main HTML page and a directory of scripts provided by LEADTOOLS HTML5 Medical Web Viewer Demo we ship with our tool kit.
I wanted to keep this demo code as simple as possible, so I modified the MedicalViewer.js file to only include the necessary code to display the preview image, the grayscale data, and allow you to window level the grayscale image using the WindowLevelInteractiveMode object.
Before you can run this demo, you must setup your Medical Web Framework as described in this video:
http://www.youtube.com/watch?v=maoEnKTeglI&list=UUB32BVMh2jnYb89IbNxveVA&index=2&feature=plcp
Once the framework is set up, you can communicate with the web service MedicalViewerService which we use to load the DICOM data into the viewer.
The demo first creates an AuthenticationProxy object so we can log in to the web service. This gives us an authentication token we can use to create the other objects including the MedicalViewer. You will need to modify the username and password parameters to valid values for your machine.
The demo also allows you to enter a Patient ID, Study Instance UID, and Series Instance UID to load from the Web Service. Note to keep the demo as simple as possible I only load the first frame of the returned series.
Once loaded, you'll see the check box labeled "Enable Window Level" is disabled until the extended grayscale data is loaded. Once loaded, the checkbox is enabled.allowing you to enable and disable the window level interactive mode.
Travis Montgomery
Senior Sales Engineer
1 user thanked Travis for this useful post.
LEADTOOLS Support
Medical
Medical SDK Examples
HTML5 Medical Web Viewer that only window levels extended grayscale data
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.