Menu
  • HOME
  • TAGS

DICOM Sequence delimitation item missed loading file (DCMTK)

c++,visual-studio-2013,compression,dicom,dcmtk

Problem might as well be in how you are populating Pixel Data (in native format) when creating the uncompressed dataset. Uncompressed image should be encoded into Pixel Data Element itself and not encapsulated into 2nd Item Element and so on. If you are missing the Sequence Delimitation Item, it is...

DICOM Accessing Compressed Data (DCMTK)

c++,visual-studio-2013,compression,dicom,dcmtk

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(); instead of the instruction before and works in the same way.... But I really don't understand why it work.... can you please try to explain? Thanks...

Compress DICOM file with DCMTK (C++)

c++,jpeg,dicom,lossless,dcmtk

When trying to compress an image you need to call DJEncoderRegistration::registerCodecs(); Decompress is DJDecoderRegistration::registerCodecs(); ...

Static linking DCMTK library

c++,linux,linker,cmake,dcmtk

Can you check the content of ${DCMTK_LIBRARIES} (it should be a list of paths to DCMTK static libraries) ? you can also check the following CMake entries during the CMake configuration: DCMTK_DIR /path/to/DCMTK/install DCMTK_config_INCLUDE_DIR /path/to/DCMTK/install/include/dcmtk/config DCMTK_dcmdata_INCLUDE_DIR /path/to/DCMTK/install/dcmdata/include/dcmtk/dcmdata DCMTK_dcmdata_LIBRARY_DEBUG /path/to/DCMTK/install/dcmdata/libsrc/libdcmdata.a DCMTK_dcmdata_LIBRARY_RELEASE /path/to/DCMTK/install/dcmdata/libsrc/libdcmdata.a [...] Another...

DicomImage's writeBMP function produces unclear gray image

dicom,dcmtk

As you can read in the API documentation of the DicomImage class, the default is that no VOI transformation is enabled when rendering monochrome DICOM images. In your case, this seems to be inappropriate, so you should specify a more appropriate VOI setting (e.g. a min-max window) or use one...

How create a DICOM image from byte (DCMTK)

c++,visual-studio-2013,compression,dicom,dcmtk

I solve the problem adding the tags DCM_BitsAllocated and DCM_PlanarConfiguration. This are the tags that are missed. I hope that is useful for someone.

Which version of dcmtk is compatible with gcc version 4.8.2?

linux,dcmtk

gcc version 4.8.2 was not available when DCMTK 3.6.0 was released (see INSTALL file). So, you should download the latest development snapshot of the DCMTK: http://blog.jriesmeier.com/2013/11/how-to-get-the-current-development-version-of-the-dcmtk/

using single AE title to more than one Ipaddress

dicom,dcmtk

See Part 8, Page 46 of the DICOM Standard, Network Communication Support for Message Exchange. Link to document A single Application Entity Title can be associated with multiple network addresses assigned to a single system (e.g., multi-homed host). A single Application Entity Title can be associated with multiple TCP Ports...

Decompress a JPEG DICOM image starting from PixelData values (DCMTK)

c++,visual-studio-2013,decode,dicom,dcmtk

Well, thanks to the DICOM official forum, I have discovered the Image2Dcm::insertEncapsulatedPixelData() function, that do exactly what I need.

DCMTK: Write DICOM file to memory

dicom,dcmtk

You can give a look at the source code of Orthanc, a lightweight Vendor Neutral Archive for medical imaging. Orthanc writes its DICOM instances to memory buffers (std::string) in the method Orthanc::FromDcmtkBridge::SaveToMemoryBuffer(). Here is a direct link to this method.