JPEG2000 format dicom image being reversely displayed

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
helioars
Posts: 14
Joined: Mon, 2010-06-14, 11:46

JPEG2000 format dicom image being reversely displayed

#1 Post by helioars »

Hello

Using free image i had read compressed JPEG2000 pixel data of dicom file.
On checking out the uncompressed pixel data, using bmp debugger software. i found that left side of image is being displayed at right side and right side of image is being displayed at the left side.

Does anybody have any idea of this...
For reading the compressed image i have used the following commands of free image

i. Initialize freeImage library connection
ii. Open the compressed pixel data in the memory
FIMEMORY *hmem = FreeImage_OpenMemory(extractedJPEGData,nOffset);
iii. // Load the compressed pixel data in the memory
FIBITMAP *dib = FreeImage_LoadFromMemory(fif, hmem, 0);
iv. // Read the decompressed bits
bits = (BYTE*)FreeImage_GetBits(Correctdib);

v. Now copy the decompressed pixel data into the DiDcmAPISaveAsDicomInfocom

Regards
Anur RS

Michael Onken
DCMTK Developer
Posts: 2049
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#2 Post by Michael Onken »

Dear Anur,

I do not know the answer to your question; however, I miss the DCMTK-related part anyway ;)

Michael

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot] and 1 guest