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, June 14, 2011 8:18:49 PM(UTC)
airhealth

Groups: Registered
Posts: 2


I know this can be done but not sure about the best way in LEADTOOLS.
When a DICOM dataset is stored, I would like to process it right away into JPEG images that can be displayed on webpage. The thin viewer does it on demand. Can anybody point me to the codes that render the DICOM dataset into JPEG files instead of calling DICOMObjectRetrieve.GetImage()?
Can we also export 3D MPR into JPEG for and 3D MIP, VRT into movie (like .h264)?

Thanks in advance.

-Larry
 

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, June 15, 2011 12:49:20 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

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

Larry,

There are basically 2 ways of retrieving the image pixel data from a Dicom dataset:
1. Either use our Dicom dataset functions to get the image from the pixel data item. This option allows you to control flags such as applying LUTs.
2. Or load the DICOM image as raster image using one of our image-loading functions (likes Leadtools.Codecs.RasterCodecs.Load). This will use default settings for getting the image from the dataset.

In either case, you can then save it to JPEG files using the RasterCodecs.Save() method.

About exporting 3D single and multi-frame images, the basic idea is to use the MedicalViewerMPRCell.GetPage() method and either save as JPEG or construct a video using our multimedia toolkit. If you want more details, please send an email to support@leadtools.com or open a new forum thread since this is not directly related to the pixel data issue above.

Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Wednesday, June 15, 2011 6:01:33 AM(UTC)
airhealth

Groups: Registered
Posts: 2


Hi Maen,

Thank you for the reply.
Two more questions:
1. If the datasets are already in JPEG LL/LY transfersyntax and we directly extract the pixel data. Is that format acceptable to browsers like regular JPEG images?
2. RasterCodecs.Save() generates JPEG images. What happens if the original datasets are 12/16 bits? Does the save method do any conversion with loss of precision?

As to 3D, I will open a new forum thread later.

Regards,
Larry
3.
 
#4 Posted : Thursday, June 16, 2011 6:15:17 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

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

Browser can only handle 8-bit grayscale and 24-bit color lossy JPEG. Lossless JPEG or extended grayscale JPEG needs to be converted to 8-bit grayscale and 24-bit color lossy JPEG for browser to display.
You can use Grayscale Command for converting the image to 8-bit grayscale before saving.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
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.052 seconds.