Search found 33 matches
- Mon, 2014-10-06, 13:08
- Forum: DCMTK - General
- Topic: Question regarding "Virtual Memory exhausted" error?
- Replies: 2
- Views: 3868
Re: Question regarding "Virtual Memory exhausted" error?
Which classes/interfaces of the DCMTK are you using? Before loading the files, I'm registering the decoders using DJDecoderRegistration::registerCodecs() and actually use the default decoding. For loading the file I'm using DcmFileformat , for getting the pointer to the dataset of the file I'm usin...
- Mon, 2014-08-18, 11:38
- Forum: DCMTK - General
- Topic: Question regarding "Virtual Memory exhausted" error?
- Replies: 2
- Views: 3868
Question regarding "Virtual Memory exhausted" error?
First of all I'd like to thank for your work. The library has been really helpful in what I wanted to do, and despite my total naivety at the beginning I'm now close to finishing what I wanted to do. There's one last bit of work left and that is to deal with the "virtual memory exhausted" ...
- Tue, 2014-04-15, 12:50
- Forum: DCMTK - General
- Topic: Crash in "chooseRepresentation" method of "DcmDataset"?
- Replies: 4
- Views: 4556
Re: Crash in "chooseRepresentation" method of "DcmDataset"?
Thanks. Is there any trick or method to optimize when using DCMTK where I can lessen Memory Exhaustion?J. Riesmeier wrote:I just committed a patch that should make sure that in such a case (new[] fails), no exception is thrown.
- Sun, 2014-04-13, 15:11
- Forum: DCMTK - General
- Topic: Crash in "chooseRepresentation" method of "DcmDataset"?
- Replies: 4
- Views: 4556
Crash in "chooseRepresentation" method of "DcmDataset"?
My program crashes in the following piece of code if(xfer == 12 || xfer == 11 || xfer == 24 || xfer == 19 || xfer == 20 || xfer == 21 || xfer == 22 || xfer == 23 || xfer == 25 || xfer == 26 || xfer == 30) { DJ_RPLossless params; compressing = dataset->chooseRepresentation(xfer, ¶ms); if(comp...
- Thu, 2014-04-10, 12:50
- Forum: DCMTK - General
- Topic: How to prevent changing photometric interpretation?
- Replies: 2
- Views: 3775
Re: How to prevent changing photometric interpretation?
What about setting appropriate codec parameters? E.g. one of the following (excerpt from the documentation): pCompressionCSConversion color conversion mode for compression [...] pWriteYBR422 flag indicating whether a compressed YBR color stream should be marked as YBR_FULL or YBR_FULL_422 on DICOM ...
- Mon, 2014-03-31, 13:10
- Forum: DCMTK - General
- Topic: How to prevent changing photometric interpretation?
- Replies: 2
- Views: 3775
How to prevent changing photometric interpretation?
I'm now able to modify the pixel data and dicom headers using DCMTK properly. But I noticed that when I change the pixel data it also changes the photometric interpretation in the new copy of the modified DICOM file. For example the photometric interpretation changes from YBR_FULL_422 to YBR_FULL. I...
- Tue, 2014-03-11, 17:35
- Forum: DCMTK - General
- Topic: Conversion from YBR_FULL to RGB in c++?
- Replies: 2
- Views: 11747
Re: Conversion from YBR_FULL to RGB in c++?
Thanks a lot for your answer. Is there any template or method to do the opposite way around?J. Riesmeier wrote:The conversion can be found in DiYBRPixelTemplate::convert(), i.e. in the header file "dcmtk/dcmimage/diybrpxt.h".
- Thu, 2014-02-27, 15:10
- Forum: DCMTK - General
- Topic: Conversion from YBR_FULL to RGB in c++?
- Replies: 2
- Views: 11747
Conversion from YBR_FULL to RGB in c++?
Please pardon me if my question sounds silly! Could you say exactly which program does the conversion of Photometric interpretation of a dicom image from YBR_FULL to RGB? I want do some conversion in c++ and I want to see exactly how it is done from the source code of DCMTK. I've had to deal with so...
- Wed, 2013-12-11, 17:56
- Forum: DCMTK - General
- Topic: Any command line tool for modifying planar-configuration?
- Replies: 1
- Views: 6273
Any command line tool for modifying planar-configuration?
Hi,
I couldn't find any functionality to change the planar configuration in. Is there any other command line tool in dcmtk that allows such modification of an uncompressed dicom image?
Thanks
I couldn't find any functionality to change the planar configuration in
Code: Select all
dcmodify
Thanks
- Thu, 2013-12-05, 15:55
- Forum: DCMTK - General
- Topic: Strange rendering of image data when planar configuration 1!
- Replies: 10
- Views: 20990
Re: Strange rendering of image data when planar configuratio
Are you sure getOutputData and getUncompressedFrame methods are working correctly for planar configuration 1? Yes, I am quite sure. However, please note that getOutputData() is a high-level function that returns a rendered image and getUncompressedFrame() is a low-level function that just returns t...
- Thu, 2013-12-05, 14:33
- Forum: DCMTK - General
- Topic: Strange rendering of image data when planar configuration 1!
- Replies: 10
- Views: 20990
Re: Strange rendering of image data when planar configuratio
In fact, there is an example on how to use getOutputData() in the documentation of the module... One more question, will the OutPutdata give the whole pixel data where the buffer size would exactly be row*column*sample-per-pixel*number-of-frames? This is also explained in the API documentation. The...
- Thu, 2013-12-05, 13:09
- Forum: DCMTK - General
- Topic: Strange rendering of image data when planar configuration 1!
- Replies: 10
- Views: 20990
Re: Strange rendering of image data when planar configuratio
In fact, there is an example on how to use getOutputData() in the documentation of the module... One more question, will the OutPutdata give the whole pixel data where the buffer size would exactly be row*column*sample-per-pixel*number-of-frames? This is also explained in the API documentation. The...
- Thu, 2013-12-05, 13:01
- Forum: DCMTK - General
- Topic: Strange rendering of image data when planar configuration 1!
- Replies: 10
- Views: 20990
Re: Strange rendering of image data when planar configuratio
Could you please elaborate me why I should use DicomImage class? Do you mean I will create a .bmp file using the DicomImage class and visualize it using that .bmp file? No, I was not thinking of a BMP file. The DicomImage is made for rendering arbitrary DICOM images and to output the result of the ...
- Thu, 2013-12-05, 12:39
- Forum: DCMTK - General
- Topic: Strange rendering of image data when planar configuration 1!
- Replies: 10
- Views: 20990
Re: Strange rendering of image data when planar configuratio
Why don't you use the DicomImage class? Could you please elaborate me why I should use DicomImage class? Do you mean I will create a .bmp file using the DicomImage class and visualize it using that .bmp file? As for the reason behind not using DicomImage class is that the app actually loads multipl...
- Wed, 2013-12-04, 18:24
- Forum: DCMTK - General
- Topic: Strange rendering of image data when planar configuration 1!
- Replies: 10
- Views: 20990
Strange rendering of image data when planar configuration 1!
I'm visualizing a single frame of a dicom image in a GUI combining Qt and Dcmtk. The visualization works perfectly when the image is of Planar configuration 0, but it gives absurd visualization when the image is of planar configuration 1. Below is an image of a single frame dicom image with planar c...