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...
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...
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...
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...
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.
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/
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...
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.
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.