Search found 27 matches
- Wed, 2015-02-18, 11:14
- Forum: DCMTK - Installation
- Topic: warning LNK4204 with DCMTK
- Replies: 2
- Views: 8123
Re: warning LNK4204 with DCMTK
So the linker warns you that you are linking a library (DCMTK) without debug information to your program (which is compiled in debug mode), right? This doesn't seem to be a DCMTK-related question but needs to be looked up in the documentation of your compiler/linker, e.g. here: https://msdn.microso...
- Wed, 2015-02-18, 10:27
- Forum: DCMTK - Installation
- Topic: warning LNK4204 with DCMTK
- Replies: 2
- Views: 8123
warning LNK4204 with DCMTK
Hi, I have added the DCMTK library inside another project. I'm using Visual Studio 2013 and the code works properly but when I compile it I have about 700 warnings, all like this: dcmdata.lib(dcbytstr.obj): warning LNK4204: 'path\vc120.pdb' is missing debugging information for referencing module; li...
- Thu, 2015-02-12, 17:34
- Forum: DCMTK - General
- Topic: Decompress a JPEG DICOM image starting from PixData
- Replies: 15
- Views: 18368
Re: Decompress a JPEG DICOM image starting from PixData
You have to create a DcmPixelSequence, insert the pixel items with the JPEG data (the first item always contains the basic offset table), and then use DcmPixelData::putOriginalRepresentation() to put the pixel sequence to the DICOM PixelData element. Code examples can be found both in "dump2dc...
- Wed, 2015-02-11, 15:19
- Forum: DCMTK - General
- Topic: Decompress a JPEG DICOM image starting from PixData
- Replies: 15
- Views: 18368
Re: Decompress a JPEG DICOM image starting from PixData
So, inside an array I have compressed pixel data and starting from this I want another byte array that contains the UNcompressed Pixel data; in such a way now I can use the putAndInsertUint8Array function because, as you said, this "only works for uncompressed pixel data". I think we go i...
- Wed, 2015-02-11, 14:44
- Forum: DCMTK - General
- Topic: Decompress a JPEG DICOM image starting from PixData
- Replies: 15
- Views: 18368
Re: Decompress a JPEG DICOM image starting from PixData
I'm sorry but this line does not show how you "move pixel data" (it only puts a byte array into the pixel data element, which only works for uncompressed pixel data, of course). Could you please provide a more detailed description on what you actually want to do. As I said, compressed pix...
- Wed, 2015-02-11, 14:20
- Forum: DCMTK - General
- Topic: Decompress a JPEG DICOM image starting from PixData
- Replies: 15
- Views: 18368
Re: Decompress a JPEG DICOM image starting from PixData
What do you mean by "move this PixelData in one dataset"? How did you actually do that? With a putAndInsert function dataset->putAndInsertUint8Array(DCM_PixelData, bufferOfMyPixelDataCompressed, NumByteImg); But in any case, if you for a second forget my code, if I have an array which ins...
- Wed, 2015-02-11, 12:16
- Forum: DCMTK - General
- Topic: Decompress a JPEG DICOM image starting from PixData
- Replies: 15
- Views: 18368
Re: Decompress a JPEG DICOM image starting from PixData
Unfortunately, it's not clear to me what "pArray->ImgDicom" contains. Is it a JPEG stream (just the pixel data with JPEG markers) or the content of a DICOM Pixel Data element (where the transfer syntax of the DICOM dataset is JPEG lossless compressed). The second, a DICOM Pixel Data eleme...
- Wed, 2015-02-11, 09:16
- Forum: DCMTK - General
- Topic: Decompress a JPEG DICOM image starting from PixData
- Replies: 15
- Views: 18368
Re: Decompress a JPEG DICOM image starting from PixData
This is another way that I have found as a solution to my problem on internet ///. get PixelData element in DCM dataset pDcmDataSet->findAndGetPixelData(...); ///. get PixelSequence in PixelData element pPixelData->getEncapsulatedRepresentation(...) ///. get PixelItem in PixelSequence pDcmPixelSeque...
- Wed, 2015-02-11, 09:14
- Forum: DCMTK - General
- Topic: Decompress a JPEG DICOM image starting from PixData
- Replies: 15
- Views: 18368
Re: Decompress a JPEG DICOM image starting from PixData
According to the DICOM standard, compressed pixel data is stored in a special way, so-called "encapsulated format" (see DICOM part 5 for details). So, your "simple" approach with the byte array does not work. Oh I see, so what I can do with DCMTK library? I have also tried in th...
- Tue, 2015-02-10, 15:12
- Forum: DCMTK - General
- Topic: Decompress a JPEG DICOM image starting from PixData
- Replies: 15
- Views: 18368
Decompress a JPEG DICOM image starting from PixData
Hi to all, I want to decompress a DICOM file like in this example http://support.dcmtk.org/docs/mod_dcmjpeg.html But my problem is that I don't want to load a file. I have an array which inside there are the PixelData values Compressed. I have tried in this way but doesn't work. DJDecoderRegistratio...
- Tue, 2015-02-10, 12:53
- Forum: DCMTK - General
- Topic: Create a new DICOM file in memory and send.
- Replies: 2
- Views: 3298
Re: Create a new DICOM file in memory and send.
I don't know what is the DICOM SP but I think yes. You need to create the dataset and you can send it through the network and after save the file in you hard disk. Or you can extract from the dataset the PixelData of the image, send this array and use it in your destination.
- Tue, 2015-02-10, 12:50
- Forum: DCMTK - General
- Topic: Sequence delimitation item missed loading file
- Replies: 1
- Views: 2659
- Fri, 2015-02-06, 10:06
- Forum: DCMTK - General
- Topic: Sequence delimitation item missed loading file
- Replies: 1
- Views: 2659
Sequence delimitation item missed loading file
Hi to all. In one of my previous app I have used the DCMTK to create a compressed DICOM file. I use the library only to manage the Pixel Data and make the compression. I mean that I have followed this wiki http://support.dcmtk.org/redmine/projects/dcmtk/wiki/Howto_AccessingCompressedData and after g...
- Mon, 2015-02-02, 09:42
- Forum: DCMTK - General
- Topic: How create a DICOM image from byte
- Replies: 17
- Views: 19741
Re: How create a DICOM image from byte
Well, maybe I have solved the problem. I have added the istructions dataset->removeAllButCurrentRepresentations(); before accessing to compressed pixel data. I can also do PixelData->removeAllButCurrentRepresentations(); and works in the same way. But I really don't understand how works... can you p...
- Thu, 2015-01-29, 08:55
- Forum: DCMTK - General
- Topic: How create a DICOM image from byte
- Replies: 17
- Views: 19741
Re: How create a DICOM image from byte
Maybe, this comment is helpful since it clarifies some misunderstandings in the previous postings: the OFCondition constant EC_RepresentationNotFound ("Pixel representation not found") has nothing to do with the DICOM attribute Pixel Representation (0028,0103). This error code means that ...