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 : Wednesday, September 7, 2011 1:12:20 AM(UTC)

j66st  
j66st

Groups: Registered
Posts: 10


I can read DICOM files containing a series of images using L_LoadBitmapList.

When trying to save a bitmap list in a single file using L_SaveBitmapList, the function returns SUCCESS, but the resulting file contains only a single image. Looks a bit like the same pixel data element gets overwritten for each image; the logging pane of the debugger shows repetitive loading of the LFCMPU.DLL and LTIMGCORU.DLL once for each image in the list.

Is there a way to simply use L_SaveBitmapList for saving a series, or do I need to use the LDicomDS class and its SetImageList method?
 

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 : Thursday, September 8, 2011 12:20:55 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

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

If your target output format is DICOM, you should not use L_SaveBitmapList or L_SaveBitmap functions (they are intended for raster image format) and instead use the functions in the DICOM library such as L_DicomInsertImageList or L_DicomSetImageList and save the updated dataset with L_DicomSaveDS.
However, you should be able to save a bitmap list using L_SaveBitmapList to a format that support multipage such as TIF, GIF, etc.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Thursday, September 22, 2011 5:48:18 AM(UTC)

j66st  
j66st

Groups: Registered
Posts: 10


Thank you! I am using the equivalent functions from the LDicomDS class now, that works.

However, in 3D views from the Main 3D demo the slices from these files are rendered in the reverse order. See my other thread "Incorrect mirrored rendering of 3D reconstructions" in the 3D section.
 
#4 Posted : Friday, September 23, 2011 1:16:32 PM(UTC)

Walter  
Walter

Groups: Tech Support
Posts: 366

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

In order to calculate the image orientation for the 3D, you need to supply the orientation information for image plane. The required elements such as Image Position (patient) (0020,0032), Image Orientation (Patient) (0020,0037), Slice Location (0020,1041)are part of Image Plane Module(see PS 3.3 section Annex C.7.6.2 for more information). If you intend to save multiple 3D slices into a single DICOM dataset, you should used SOP Classes with multi-frame functional group module such as Enhanced CT Image Storage. Under the shared Functional Group Sequence you can store the Image Orientation (Patient) and Per-frame Functional Group can have Image Position (patient).
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.062 seconds.