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 : Friday, September 12, 2014 12:47:02 AM(UTC)

brass9  
brass9

Groups: Registered
Posts: 2


How can I compress DICOM overlay data (6000:3000) image?

I am saving DICOM images as J2K, however the overlay image data remains uncompressed.

I have tried compressing the overlay data explicitly using RLE:

private RasterImage compressOverlay(RasterImage image)
{
var cmd = new ConvertSignedToUnsignedCommand(ConvertSignedToUnsignedCommandType.ShiftNegativeToZero);
if (image.OverlayCount > 0)
{
for (var overlayIndex = 0; overlayIndex < image.OverlayCount; overlayIndex++)
{
var overlayImage = image.GetOverlayImage(overlayIndex, RasterGetSetOverlayImageMode.Copy);
cmd.Run(overlayImage);
overlayImage.ChangeCompression(RasterCompression.Rle);
image.SetOverlayImage(overlayIndex, overlayImage, RasterGetSetOverlayImageMode.Copy);
}
}
return image;
}

However, upon saving the above image into DICOM dataset, the OverlayData element becomes uncompressed.

How can I persist the compressed overlay image to DICOM dataset? Better yet, is there any way to convert overlay images to J2K/JPG format? Section 8 (https://www.dabsoft.ch/dicom/5/8/) seems to indicate overlay data can be compressed.
 

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 : Sunday, September 14, 2014 4:37:31 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


brass9,
According to the DICOM Standard, overlay data is just uncompressed 1-bit image. It can't be compressed.

 
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.049 seconds.