DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Sat, 2017-12-16, 15:53

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: byte array to DicomImage
PostPosted: Thu, 2017-06-15, 13:48 
Offline

Joined: Thu, 2017-04-27, 16:52
Posts: 9
Hello, great software.

My question is how does one create a DicomImage object from a byte array? This byte array contains a dcm file read from the filesystem. The intention is to return the processed image to some java code with createJavaAWTBitmap. Now for example I already have the DcmInputBufferStream set up
Code:
DcmInputStream* dcmInputStream = new DcmInputBufferStream();
((DcmInputBufferStream*)dcmInputStream)->setBuffer(bufferPtr, numBytes);
if (fileformat.read(*dcmInputStream).good()){
...
}

How do I represent it as JavaAWTBitmap? Thanks


Top
 Profile  
 
PostPosted: Fri, 2017-06-16, 18:46 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1882
Location: Oldenburg, Germany
Pass the DcmFileFormat (or DcmDcmdata) instance to the DicomImage constructor and call DicomImage::createJavaAWTBitmap().


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group