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 : Thursday, October 11, 2012 6:42:23 PM(UTC)

kb7  
kb7

Groups: Registered
Posts: 71


Hello,

Can you please provide me some sample code to take a DICOM print of one of the frame of Multiframe XA image....


Thanks..
 

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 : Monday, October 15, 2012 6:34:14 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


First, you need to extract that frame from the original dataset then create a new Dicom dataset and insert the image into that newly created dataset.
After that, pass it as attribute list to N-SET command.
See the Table H.4-10 under the section H.4.3.1.2.1.1 of PS 3.4 of DICOM standard.

Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#3 Posted : Sunday, November 4, 2012 8:53:23 PM(UTC)

kb7  
kb7

Groups: Registered
Posts: 71


Hello,

Can you please give me some sample code to do this i.e. extracting frame from original dataset and inserting image to newly created dataset? and how to pass it as attribute list to N-SET command?

Thanks...
 
#4 Posted : Monday, November 5, 2012 4:41:57 AM(UTC)

mohamed  
mohamed

Groups: Registered, Tech Support
Posts: 179


About the extraction of desired frame: you can use ds.GetImage method, please see the following help topic:
http://www.leadtools.com/help/leadtools/v175/dh/di/leadtools.dicom~leadtools.dicom.dicomdataset~getimage.html

Now you can create Dicom data set using:
DicomDataSet  dataSet = new DicomDataSet()

About inserting a frame image to the newly created dataset: you can use ds.InsertImage Method, for more information, see the following help topic:
http://www.leadtools.com/help/leadtools/v175/dh/di/leadtools.dicom~leadtools.dicom.dicomdataset~insertimage.html

For the code of inserting a frame image to Dicom dataset, see the same help topic of GetImage Method:
http://www.leadtools.com/help/leadtools/v175/dh/di/leadtools.dicom~leadtools.dicom.dicomdataset~getimage.html

About Passing the Dataset to the NSET request, read the following help:
http://www.leadtools.com/help/leadtools/v175/dh/di/leadtools.dicom~leadtools.dicom.dicomnet~sendnsetrequest.html
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
#5 Posted : Wednesday, November 14, 2012 9:02:18 AM(UTC)

Walter  
Walter

Groups: Tech Support
Posts: 366

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)

Attached is a VS 2008 project using LEADTOOLS v17.5 designed to print single or multiframe XA datasets. This code could be modified to print images from other storage classes. This demo specifically uses a template dataset aimed at XA images. I have noted in the code where the changes should be made.

The method of printing is application-specific. This sample creates a single film session. It then creates a film box for each page of frames that will be sent to the SCP.

Steps for using this demo:
1.) Associate
2.) Create Film Session (pick a directory of files to print)
3.) Release
File Attachment(s):
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
LEAD Logo
 
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-2024, Yet Another Forum.NET
This page was generated in 0.061 seconds.