Search found 13 matches
- Wed, 2022-10-26, 14:57
- Forum: DCMTK - General
- Topic: Browser display of jp2k frames
- Replies: 1
- Views: 1871
Browser display of jp2k frames
Hello, (Apologies if this has been asked before, but the forum search functionality seems to be down right now.) I'd like to see how people are rendering DICOM jp2k images in a browser and gather opinions of good ways to do this given lack of native support. One can pull jp2k frames from, say, a DIC...
- Thu, 2021-03-11, 21:43
- Forum: DCMTK - Installation
- Topic: problem cross compiling
- Replies: 7
- Views: 21340
Re: problem cross compiling
Hi there, I'll certainly post if I figure this out. In my case, building for linux and windows from within VS 2019 is more complicated. When you change to the linux build, it copies all files over to the linux subsytem with rsync before you actually to the build. And I can't seem to intervene. Cross...
- Wed, 2021-03-10, 22:01
- Forum: DCMTK - Installation
- Topic: problem cross compiling
- Replies: 7
- Views: 21340
Re: problem cross compiling
Tracking this down, it looks to be related to: https://forum.dcmtk.org/viewtopic.php?t=4539 I am also cross-compiling and have the same error: 1> [CMake] CMake Error at CMake/GenerateDCMTKConfigure.cmake:1406 (message): 1> [CMake] Inspecting fundamental arithmetic types... MESSAGE("CMAKE_CROSSC...
- Wed, 2021-03-10, 20:48
- Forum: DCMTK - Installation
- Topic: problem cross compiling
- Replies: 7
- Views: 21340
Re: problem cross compiling
Hello,
I have the same issue running Visual Studio 2019 cross-compiling for Linux. My DCMTK version is 3.6.5.
If, in the cmake settings, I turn off DCMTK_WITH_THREADS I get a different error:
config/include/dcmtk/config/arith.h:1: error: unterminated #ifndef
Are there any work-arounds for this?
I have the same issue running Visual Studio 2019 cross-compiling for Linux. My DCMTK version is 3.6.5.
If, in the cmake settings, I turn off DCMTK_WITH_THREADS I get a different error:
config/include/dcmtk/config/arith.h:1: error: unterminated #ifndef
Are there any work-arounds for this?
- Tue, 2020-03-31, 03:24
- Forum: DCMTK - General
- Topic: Reading second instance of a duplicated Tag
- Replies: 3
- Views: 3465
Re: Reading second instance of a duplicated Tag
Yes, no problems. Happy to help as this forum has been really useful to us and invariably DCMTK has an excellent solution! So to be quite explicit for other readers, the approach we use is via the DcmStack, in which we can populate all results: DcmStack resultStack; fileformat.getDataset()->findAndG...
- Thu, 2020-03-26, 18:50
- Forum: DCMTK - General
- Topic: Reading second instance of a duplicated Tag
- Replies: 3
- Views: 3465
Re: Reading second instance of a duplicated Tag
Just to follow up, we realized that findAndGetElements returns _all_ elements with the same name, so one simply need loop over the returned values to get them all.
DCMTK is great!
Jonathan.
DCMTK is great!
Jonathan.
- Mon, 2020-03-23, 19:27
- Forum: DCMTK - General
- Topic: Reading second instance of a duplicated Tag
- Replies: 3
- Views: 3465
Reading second instance of a duplicated Tag
Hi, I've found that certain data sets have two instances of the same tag, meaning that, when findAndGetOFStringArray is used for the read, the second tag is ignored. OFCondition findAndGetOFStringArray(const DcmTagKey &tagKey, OFString &value, const OFBool searchIntoSub = OFFalse); Is there ...
- Mon, 2019-05-13, 20:47
- Forum: DCMTK - General
- Topic: findAndGetUint8Array read of DCM_EncryptedContent
- Replies: 2
- Views: 2345
Re: findAndGetUint8Array read of DCM_EncryptedContent
You are right, sorry, I stepped through all deletions and see that the exception arises because I do delete the data pointer referencing the internally stored element value.
Thanks for catching that!
Yes, 3.6.0 is old, but it's really good! But I do indeed see multiple reasons to upgrade, too.
Thanks for catching that!
Yes, 3.6.0 is old, but it's really good! But I do indeed see multiple reasons to upgrade, too.
- Mon, 2019-05-13, 19:06
- Forum: DCMTK - General
- Topic: findAndGetUint8Array read of DCM_EncryptedContent
- Replies: 2
- Views: 2345
findAndGetUint8Array read of DCM_EncryptedContent
Hi, I've been looking to store data in different DCM tags and am currently looking at using DCM_EncryptedContent to store indeed store encrypted information as a unsigned char array: status = dataset->putAndInsertUint8Array(DCM_EncryptedContent, data, num_bytes); I can write this data just fine (usi...
- Tue, 2015-09-15, 22:01
- Forum: DCMJP2K
- Topic: Creating uncompressed image from JPEG 2000 stream
- Replies: 3
- Views: 31260
Re: Creating uncompressed image from JPEG 2000 stream
Thank you for this solution. I now ensure the data I use begins at the JPEG 2000 codestream by searching for: const std::string jp2k_data("FF4F"); (And ends at FFD9.) I then insert the offset table to the pixel sequence: DcmPixelItem *offsetTable = new DcmPixelItem(DcmTag(DCM_Item, EVR_OB)...
- Thu, 2015-09-10, 18:49
- Forum: DCMJP2K
- Topic: Creating uncompressed image from JPEG 2000 stream
- Replies: 3
- Views: 31260
Creating uncompressed image from JPEG 2000 stream
I have a JPEG 2000 byte stream, which, if I dump to disk with a 'jp2' extension, reads as a JPEG image. I'd like though to create an uncompressed (EXS_LittleEndianExplicit) DICOM file. So far, I can only create a compressed Dicom file, which reads in fine in Matlab, but gives the following error usi...
- Wed, 2015-09-09, 18:08
- Forum: DCMTK - General
- Topic: Decompress a JPEG DICOM image starting from PixData
- Replies: 15
- Views: 21222
Re: Decompress a JPEG DICOM image starting from PixData
Actually, I have the solution: just use the insertEncapsulatedPixelData private method as an example of how to do this.
- Tue, 2015-09-08, 21:37
- Forum: DCMTK - General
- Topic: Decompress a JPEG DICOM image starting from PixData
- Replies: 15
- Views: 21222
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...