DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Sun, 2018-06-24, 19:09

All times are UTC + 1 hour


Search found 1939 matches
Search these results:

Author Message

 Forum: DCMTK - General   Topic: Image output

 Post subject: Re: Image output
Posted: Wed, 2018-05-30, 10:48 

Replies: 2
Views: 86


DicomImage::getOutputData() does not always return RGB pixel data, e.g. in case the DICOM image is monochrome. Also padding and the like is not as expected by the Windows API. I would therefore suggest that you use DicomImage::createWindowsDIB() instead.

 Forum: DCMTK - General   Topic: Can I convert a TID300 Measurement object to a DcmDataset?

Posted: Wed, 2018-05-23, 21:26 

Replies: 7
Views: 199


Btw, instead of CID7469_GenericIntensityAndSizeMeasurements::EnumType::Diameter you could also write CMR_CID7469::Diameter, which is much shorter.

 Forum: DCMTK - General   Topic: Can I convert a TID300 Measurement object to a DcmDataset?

Posted: Wed, 2018-05-23, 13:38 

Replies: 7
Views: 199


I guess that the "auto" keyword in your code creates a local variable of the required type (i.e. a copy). However, what you actually need is a reference in order to modify the internally managed measurements (i.e. "auto &" or the respective by-reference type, which is what pr...

 Forum: DCMTK - General   Topic: Can I convert a TID300 Measurement object to a DcmDataset?

Posted: Wed, 2018-05-23, 12:14 

Replies: 7
Views: 199


Did you actually insert the TID1500_MeasurementReport into the DSRDocument instance (e.g. using setTreeFromRootTemplate())? Could you post a minimal example that demonstrates what you've described?

 Forum: DCMTK - General   Topic: Can I convert a TID300 Measurement object to a DcmDataset?

Posted: Tue, 2018-05-22, 17:17 

Replies: 7
Views: 199


TID300_Measurement is a sub-template that can be inserted into a root template (or the internally stored sub-tree can be inserted into a document tree) and then into an instance of DSRDocument. The latter provides a write() method that outputs its content to a DcmDataset. In principle, you could al...

 Forum: DCMTK - General   Topic: the function copy() of OFString returns wrong length

Posted: Wed, 2018-05-16, 08:43 

Replies: 8
Views: 156


When I design the string arguments to DLL function, the data type of OFString will be transferred to char* allowing other program language to call the DLL. Then, you should/could use the OFString::c_str() method. The other reason is v3.6.1 without this problem. So, if I upgrade to 3.6.3, I must mod...

 Forum: DCMTK - General   Topic: the function copy() of OFString returns wrong length

Posted: Wed, 2018-05-16, 07:58 

Replies: 8
Views: 156


As far as I can see, there is nothing to be solved with the implementation of OFString::copy(). As I wrote, this is how string::copy() is defined.

The question is: why do you use the copy() method at all?

 Forum: DCMTK - General   Topic: the function copy() of OFString returns wrong length

Posted: Tue, 2018-05-15, 11:06 

Replies: 8
Views: 156


I checked this more thoroughly: OFString::copy() is consistent with string::copy() by "not adding a null character at the end of the copied content". Also strncpy() does not add the terminating null character. That's why we use our own OFStandard::srtrlcpy() and OFStandard::strlcat() in th...

 Forum: DCMTK - General   Topic: the function copy() of OFString returns wrong length

Posted: Tue, 2018-05-15, 08:29 

Replies: 8
Views: 156


Hi Chung-Yueh,

could it be that simple that your char array is one byte too short? OFString::size() returns the length of the contained character string, so you have to add 1 when allocating the array (for the terminating 0 byte).

 Forum: DCMTK - General   Topic: Image display

 Post subject: Re: Image display
Posted: Mon, 2018-05-07, 14:20 

Replies: 4
Views: 156


The DicomImage class provides various methods that create rendered pixel data, e.g. getOutputData(). Also see the module's documentation for a very simple code example.

 Forum: DCMTK - General   Topic: SR query on Echo U/S (looking for instruction/guidance)

Posted: Mon, 2018-04-30, 16:06 

Replies: 1
Views: 111


Where you find the desired measurement(s) in the SR document depends on the Template that was used to create it, e.g. TID 5200 "Echocardiography Procedure Report" or TID 5300 "Simplified Echo Procedure Report" . As a tool from the DCMTK, I would recommend dsr2xml , assuming that ...

 Forum: DCMTK - General   Topic: Remove all frames but the first

Posted: Thu, 2018-04-19, 16:58 

Replies: 4
Views: 157


Since there is only a decodeFrame() and no encodeFrame() method for the various compression schemes, one way of doing this would be to extract the first frame from the Pixel Data instance using getUncompressedFrame(), which supports both uncompressed and compressed pixel data as input, and to either...

 Forum: DCMTK - General   Topic: How do we differentiate SR Vs SINR Vs ED?

Posted: Thu, 2018-04-19, 15:15 

Replies: 1
Views: 80


It seems that you've posted the same question to "comp.protocols.dicom". Here is my answer: https://groups.google.com/forum/#!msg/c ... 4XxGNzCgAJ

 Forum: DCMTK - General   Topic: Remove all frames but the first

Posted: Wed, 2018-04-18, 21:04 

Replies: 4
Views: 157


Could you please describe in more details what you want to do? What is the input, what the expected output, transfer syntax of input/output...

 Forum: DCMTK - General   Topic: Extraction data from DICOM RTplan

Posted: Sun, 2018-04-15, 18:55 

Replies: 1
Views: 100


You could either use the DRTPlan class from the "dcmrt" module or access the corresponding DICOM elements directly using the lower-level API from the "dcmdata" module, if this was the question. More details on leaf positions etc. can be found in DICOM PS3.3.
Sort by:  
Page 1 of 130 [ Search found 1939 matches ]


All times are UTC + 1 hour


Jump to:  
Powered by phpBB® Forum Software © phpBB Group