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 : Tuesday, February 3, 2009 10:35:31 PM(UTC)
yourfriend20030

Groups: Registered
Posts: 59


Hi leadtools Staff!
I am facing a new problem when saving new Dicom file. Below is my details:
- I have a multipage Dicom Image(called as Image1 with 19 pages) and I am using MedicalViewer to display it. The Image can obtain from: _medicalViewer.Cells[CellIndex].Image.
- Next I have another multipage Dicom Image(called as Image2 with 16 pages). Then I add Image2 into Image1 by using the code like: _medicalViewer.Cells[CellIndex].Image.AddPages(_Image2 , 1, _Image2 .PageCount)
- After combining 2 images into one. I have a new Image with total of 35 pages.
- Now I want to save new Image of 35 page. But When I use the code of saving it in Medical Viewer Demo Example of LeadTools V16:
codecs.Save(image,
_fileName,
_format,
_bitsPerPixel,
image.Page,
image.PageCount,
_savePageNumber,
_pageMode)

- myCodecs is RasterCodecs
- image is _medicalViewer.Cells[CellIndex].Image of 35 pages
-fileName=C:\\newImg.Dcm
- format=DicomColor
-_bitsPerPixel=24
-image.Page=1
-image.PageCount=35
-_savePageNumber=1
-_pageMode=Overwrite

After saving I open new Image but the page of Image is not 35 pages. I don't know why it is.
Can you tell me what i have to do before saving it so that I obtain new Image with 35 pages.
Also in case that I add many multipage image into an existing Image(not only 2 images above)
Thanks in advance!



 

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 : Wednesday, February 4, 2009 6:08:38 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

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

You can't use the RasterCodecs.Save method to save a Multi-Page DICOM image. Instead of using the RasterCodecs.Save method, you need to append the images that you want to save in a Dicom Data set (Leadtools.Dicom.DicomDataSet) and then save the Dicom Data Set by using the DicomDataSet.Save method.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Sunday, February 8, 2009 9:57:02 PM(UTC)
yourfriend20030

Groups: Registered
Posts: 59


Can you tell me more detail about the Method of Dicomdataset that can add new frame from an Image into an Image and the method of saving the combined Image.
I don't know the method of it.
Thanks in advance.
 
#4 Posted : Sunday, February 8, 2009 10:06:24 PM(UTC)
yourfriend20030

Groups: Registered
Posts: 59


How to append the images that you want to save in a Dicom Data set (Leadtools.Dicom.DicomDataSet) and then save the Dicom Data Set by using the DicomDataSet.Save method.
Can you tell me more detail
Thanks
 
#5 Posted : Monday, February 9, 2009 3:51:37 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

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

You can add the images that you want to append to a RasterImage using the RasterImage.AddPages method. Then you can insert the RasterImage to the Dicom Data Set by using the DicomDataSet.InsertImages method.
For more information, please read the help topic (InsertImages Method) in the LEADTOOLS .Net documentation

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#6 Posted : Tuesday, February 10, 2009 3:13:34 PM(UTC)
yourfriend20030

Groups: Registered
Posts: 59


I have done successfully follow your advice
Thanks so much and have a nice day:D
 
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.103 seconds.