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
JPEG2000 format dicom image being reversely displayed
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2049
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Who is online
Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot] and 1 guest