Get data from DcmDataset and put it in a buffer
Moderator: Moderator Team
Get data from DcmDataset and put it in a buffer
Hi,
I made a program that décommresse a Dicom- JPEG lossless.
What I want now is to retrieve only data after decompression from DcmDataset and put it in a buffer.
I did not know how to do it
Waitting for your help and thank you in advance
I made a program that décommresse a Dicom- JPEG lossless.
What I want now is to retrieve only data after decompression from DcmDataset and put it in a buffer.
I did not know how to do it
Waitting for your help and thank you in advance
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
thank you for
I want to recover the uncompressed data and put it in a buffer.
I don't want to save the uncompressed dicom file using methode
What I want now is to retrieve only data after decompression from DcmDataset or DcmFileFormat and put it in a buffer.
using
memcopy(......)
Thank you in advance
I want to recover the uncompressed data and put it in a buffer.
I don't want to save the uncompressed dicom file using methode
Code: Select all
fileformat.saveFile(opt_ofname, opt_oxfer, opt_oenctype, opt_oglenc,opt_opadenc, (Uint32) opt_filepad, (Uint32)opt_itempad,opt_oDataset);
using
memcopy(......)
Thank you in advance
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
This is what I was asking in my first reply ...
Depending on the data type of the PixelData element (OB or OW), you could use findAndGetUint8Array() or findAndGet16Array() after calling chooseRepresentation() to decompress the pixel data. This gives you access to the uncompressed (raw) pixel data. If the purpose of accessing the pixel data is image visualization, you should have a closer look to the DicomImage class.
Depending on the data type of the PixelData element (OB or OW), you could use findAndGetUint8Array() or findAndGet16Array() after calling chooseRepresentation() to decompress the pixel data. This gives you access to the uncompressed (raw) pixel data. If the purpose of accessing the pixel data is image visualization, you should have a closer look to the DicomImage class.
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
Who is online
Users browsing this forum: Semrush [Bot] and 0 guests