Search found 16 matches
- Tue, 2012-11-13, 01:47
- Forum: DCMTK - General
- Topic: enforce VR when setting DcmElement value
- Replies: 6
- Views: 7839
Re: enforce VR when setting DcmElement value
Hi, I ran into the problem with checkValue() recently. It seem to be wrong when use checkValue() function to check the Patient Name. I tried the below testing code and get the result as "Value Representation Violated". (I have used dcmtk 3.6.0) DcmDataset* ds=dfile.getDataset(); DcmElement...
- Wed, 2012-02-22, 03:27
- Forum: DCMTK - General
- Topic: How to initialize length of OutputBufferStream
- Replies: 6
- Views: 6775
You are right. Calling DcmElement::calcElementLength() with the transfer syntax used in compression using DcmDataset::chooseRepresentation() will return the length of data after compression. My previous testing code didn't work because of lack of choosing representation step. Thanks you very much fo...
- Mon, 2012-02-20, 03:49
- Forum: DCMTK - General
- Topic: How to initialize length of OutputBufferStream
- Replies: 6
- Views: 6775
Here is my test code: // Init buffer stream int length=bufferLength; unsigned char* arrOuput=new unsigned char[length]; DcmOutputStream* outStream = new DcmOutputBufferStream(arrOuput,length); // Decompress and write data to stream dcmffIn->transferInit(); error = dcmffIn->write(*outStream, opt_oxfe...
- Fri, 2012-02-17, 11:53
- Forum: DCMTK - General
- Topic: How to initialize length of OutputBufferStream
- Replies: 6
- Views: 6775
Thanks for your reply. I tried to use calcElementLength() as your suggestion but the return value of this function is too small comparing to the buffer length needed to save whole compress data. I had dicom file (in Little Endian Explicit transfer syntax) with 515Kb in size. If I calculate length wi...
- Thu, 2012-02-16, 03:52
- Forum: DCMTK - General
- Topic: How to initialize length of OutputBufferStream
- Replies: 6
- Views: 6775
How to initialize length of OutputBufferStream
Hi, I'm writing a function to compress/decompress dicom data. The input is a dataset, and the output is a compressed dataset. Because I don't want to save/load file as in the examples of dcmtk tool (dcmcjpeg, dcmdjpeg) (it would cause performance problem), so I use BufferStream as an alternative sol...
- Sat, 2012-02-11, 03:57
- Forum: DCMTK - General
- Topic: How to get all tags name exist in a DICOM file using dcmtk3.6.0?
- Replies: 3
- Views: 6273
- Thu, 2012-02-09, 04:02
- Forum: DCMTK - General
- Topic: How to get all tags name exist in a DICOM file using dcmtk3.6.0?
- Replies: 3
- Views: 6273
I have found the solution using getElement() function.
It seem to be pretty easy
Code: Select all
DcmDataset ds;
...
for(unsigned long i = 0; i<ds->card();i++)
{
element = ds->getElement(i);
}
- Wed, 2012-02-08, 09:01
- Forum: DCMTK - General
- Topic: How to get all tags name exist in a DICOM file using dcmtk3.6.0?
- Replies: 3
- Views: 6273
How to get all tags name exist in a DICOM file using dcmtk3.6.0?
Hi, I have a dicom file and I want to list out all the tags name exist in this file. Is there any method in dcmtk support this? For example: There's abc.dcm file in which those tags have value (value length >0): PatientName, PatientID, StudyDate,... I'm finding a function which can return a list con...
- Thu, 2011-12-22, 08:24
- Forum: DCMTK - Installation
- Topic: crash at app quit in OFCondition::~OFCondition
- Replies: 9
- Views: 15502
Hi,
I have solved the problem by separate managed code and unmanaged code in different compilation (refer to this instruction).
The program run OK now .
So the problem is not caused by DCMTK.
Regards
I have solved the problem by separate managed code and unmanaged code in different compilation (refer to this instruction).
The program run OK now .
So the problem is not caused by DCMTK.
Regards
- Wed, 2011-12-21, 11:23
- Forum: DCMTK - Installation
- Topic: crash at app quit in OFCondition::~OFCondition
- Replies: 9
- Views: 15502
Hi Micheal, I describe the test program as below. The main purpose of the program is call managed class from c# code. C# code: using System; using System.Collections.Generic; using System.Text; namespace test { class Program { static void Main(string[] args) { TEST tst = new TEST(); Console.WriteLin...
- Wed, 2011-12-21, 05:43
- Forum: DCMTK - Installation
- Topic: crash at app quit in OFCondition::~OFCondition
- Replies: 9
- Views: 15502
Crash as application quit
Hi, It is old topic, but I have run into a problem similar to this recently. I built and used dcmtk as static library in the managed project (I used VS2008). The project was built successfully, but it crashed when I executed it. I had searched the code many times and found a strange behavior that I ...
- Wed, 2011-08-24, 12:13
- Forum: DCMTK - General
- Topic: C-Find query with Japanese PatientName
- Replies: 8
- Views: 10469
Hi, so it works now for you, right? Yes, it work now after set the value for tag 0008,0005. In your first query, the request does not show the wildcards in the dump I posted the wrong response. Sorry about that. The correct response is: PatientName: *;3ED* Requesting Association Association Accepted...
- Wed, 2011-08-24, 11:11
- Forum: DCMTK - General
- Topic: C-Find query with Japanese PatientName
- Replies: 8
- Views: 10469
Hi, About the DCM4CHEE server: Are you sure DCM4CHE supports japanese character sets, without further configuration? I think that this server support Japanese because it can show Japanese character in viewer tool. I posted as below the responses from server in two cases. 1/ Search condition PatientN...
- Tue, 2011-08-23, 05:05
- Forum: DCMTK - General
- Topic: C-Find query with Japanese PatientName
- Replies: 8
- Views: 10469
Hi, Now I can query successfully with fixed version from ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/dcmtk354/patch/. I describe the query as below (I sent query to two server ConquestSRV and DCM4CHEE): In search condition, Tag PatientName has value: *;3ED* (encoded string of 山田) Tag Specifi...
- Sat, 2011-08-20, 04:57
- Forum: DCMTK - General
- Topic: C-Find query with Japanese PatientName
- Replies: 8
- Views: 10469