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 : Friday, May 19, 2017 3:40:15 PM(UTC)

Walter  
Walter

Groups: Tech Support, Administrators
Posts: 320

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

This is a C# console application build with LEADTOOLS 19 in Visual Studio 2017 that illustrates how to configure the LEADTOOLS DICOM Writer filter to create a dataset with H.264 in MPEG-2 Transport. This example encodes HD video (through resizing one of the sample LEADTOOLS media files) to create an MPEG-4 AVC/H.264 BD-compatible DICOM file. The frame rate is also set with the encoder to be 29.970 fps.

The project uses a template video photography DICOM file as it's starting point. Other templates can be used such as endoscopy, but it may require other tags in the DICOM dataset.

After the video is generated, the DICOM file is updated using extension methods to set the patient information. For more information on the extension method used, see Simple DICOM Extensions to Read or Write Dataset Tags.

The code also updates the SOP instance, series instance and study instance UIDs so the generated file will be unique each time.

Note: The code is designed to be extracted and run from the following directory:
C:\LEADTOOLS 19\Examples\posts\t12193

It can be run from other locations, but some code may need to change. Specifically, you will need to update the DICOM template file path.

Also, if you have the LEADTOOLS Medical Imaging SDK and LEADTOOLS Multimedia SDK installed separately, the references may need to be updated.

File Attachment(s):

Edited by user Friday, June 16, 2017 8:34:28 AM(UTC)  | Reason: Not specified

Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 

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.

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-2017, Yet Another Forum.NET
This page was generated in 0.130 seconds.