LEADTOOLS Support
Medical
Medical SDK Questions
Problem about Add page to a multipage DicomImage
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, February 3, 2009 10:35:31 PM(UTC)
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!
#2
Posted
:
Wednesday, February 4, 2009 6:08:38 AM(UTC)
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)
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)
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)
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)
Groups: Registered
Posts: 59
I have done successfully follow your advice
Thanks so much and have a nice day:D
LEADTOOLS Support
Medical
Medical SDK Questions
Problem about Add page to a multipage DicomImage
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.