Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, July 8, 2012 9:31:15 PM(UTC)

daven11  
daven11

Groups: Registered
Posts: 4


Hello, I'm trying to get the html5 medical viewer component to work standalone, i.e. without the enclosed demo. I've tries the example from the help - (as below) but there is no setImageURL function in the medical web viewer. Would you be able to provide a sample page that just loads an image and/or a sample that loads a series of images? Thanks

var medicalViewer;
var initialURL = "URL for Image to load";
// EX: "ImageGenerator.aspx?StudyInstanceUID=1.2.392.200036.9123.100.200.20040414140657&
SeriesInstanceUID=1.2.840.10008.535.5107.20050113.121555.9999&SOPInstanceUID=1.2.840.10008.535.5107.20050113.121606.203&PageNumber=1&ImageWidth=128&ImageHeight=128"
window.onload = function() {
medicalViewer = new MedicalViewer(document.getElementById("viewerContainer"), "medicalViewer1");
try {
medicalViewer.setImageURL(initialURL);
}
catch(e) {
alert('Error Loading image, Message: ' + e);
}
}
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, July 8, 2012 9:33:53 PM(UTC)

daven11  
daven11

Groups: Registered
Posts: 4


LeadTools 17.5 using Visual Studio 2010 on Windows 7
 
#3 Posted : Tuesday, July 10, 2012 5:51:55 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

The medical viewer control is actually just an image viewer control with some medical functionality wrapped around it. We ship the source for this in:
==========
C:\LEADTOOLS 17.5\Examples\PACSFramework\MedicalWebViewer\CS\MedicalWebViewerDemo\Scripts\MedicalViewer\MedicalViewer.js
==========

However, if you are just trying to load and display a DICOM image, I am attaching a small sample project that shows how you can load a DICOM image on ImageViewer control using the LEADTOOLS Rest services.

Note that to run the project, you need to do the following:
1. Host LEADTOOLS Rest services in IIS. You can do this by running the following demo:
==========
C:\LEADTOOLS 17.5\Bin\Dotnet4\x64\LeadtoolsServicesHostManager_Original.exe
==========

After this, you need to add the Leadtools.Dicom.dll file in the following folder:
==========
C:\LEADTOOLS 17.5\Examples\REST\RESTServicesHost\Bin
==========

Thanks,
Maen Badwan
LEADTOOLS Technical Support
File Attachment(s):
HTML5_LoadImage.zip (230kb) downloaded 109 time(s).
 
#4 Posted : Tuesday, July 10, 2012 1:02:45 PM(UTC)

daven11  
daven11

Groups: Registered
Posts: 4


Many thanks for that, that starts to clear up some questions.


What I'm trying to do is in the demo there are two parts we'd like to keep


1) the toolbars and

2) the medicalviewer and the ability to cache images using the rest service.


However because the viewer in the demo is fairly closely entwined in the rest of the PACS interaction I'm finding it difficult to separate out this functionality without a lot of work. If you had a simple example that includes these, that would be fantastic.
 
#5 Posted : Wednesday, July 11, 2012 5:35:55 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

As you mentioned, the code is already in the demo.
I am afraid that we don't have a ready sample that shows these features separately.
However, the following articles contain useful information about using HTML5 with DICOM:
http://www.codeproject.com/Articles/397527/HTML5-Zero-Footprint-Viewer-for-DICOM-and-PACS

http://www.codeproject.com/Articles/414982/HTML5-Zero-Footprint-Viewer-for-DICOM-and-PACS-Par

Although the articles contain information about the server side, the parts that might interest you more are those about the client side viewer.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#6 Posted : Wednesday, July 11, 2012 2:52:42 PM(UTC)

daven11  
daven11

Groups: Registered
Posts: 4


Thanks
 
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.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.170 seconds.