Search found 11 matches

by sam24666806
Sat, 2017-02-04, 19:00
Forum: DCMTK - General
Topic: Issue about unicode file path
Replies: 1
Views: 2063

Issue about unicode file path

Hello, As title, I try to read file with Unicode file path on Window OS. But I fail. After searching the problem, I find some clues about it and then I fix it. It seems works fine. But I can't sure there are some details I ignore. Let me explain how I fix it. At first DcmInputFileStream use DCMFileP...
by sam24666806
Fri, 2016-12-02, 10:29
Forum: DCMTK - General
Topic: How to receive UID_PrivateGenericFileSOPClass
Replies: 3
Views: 4476

Re: How to receive UID_PrivateGenericFileSOPClass

My first questions is: Why do you want to send an object of this private SOP Class? In order to answer you question "What should I modified my code for receiving UID_PrivateGenericFileSOPClass DICOMs ?" I would need to know more details about your program. Hi, At first, I want to apprecia...
by sam24666806
Mon, 2016-11-21, 06:33
Forum: DCMTK - General
Topic: How to receive UID_PrivateGenericFileSOPClass
Replies: 3
Views: 4476

How to receive UID_PrivateGenericFileSOPClass

As title. I encounter some trouble about receiving UID_PrivateGenericFileSOPClass DICOM from other program I called A. Some one will use the program A to send DICOM files with tag MediaClassUID being equal to UID_PrivateGenericFileSOPClass. In my program, I try to add this tag to legal presentation ...
by sam24666806
Thu, 2016-01-14, 03:17
Forum: DCMTK - General
Topic: How to modify tag in the dataset.
Replies: 9
Views: 11535

Re: How to modify tag in the dataset.

Hi B.R. LaChen, sorry I was confused, I just realized that this is not this recent thread here that talks about the iteration . You can find the answer there. Unfortunately there are no real C++ style iterators so far, which is (like so many things) also on our wish list for a while. Best regards, ...
by sam24666806
Wed, 2016-01-13, 09:54
Forum: DCMTK - General
Topic: How to modify tag in the dataset.
Replies: 9
Views: 11535

Re: How to modify tag in the dataset.

Hi, Note that accessing the elements via index is slower than iterating over them since the list is always searched from the beginning in order to reach the defined index. But probably that's not an issue unless you read lots of datasets with many elements within the sequence items. Best, Michael H...
by sam24666806
Wed, 2016-01-13, 06:41
Forum: DCMTK - General
Topic: How to modify tag in the dataset.
Replies: 9
Views: 11535

Re: How to modify tag in the dataset.

Hi, I find the solution about finding elements in SQ. At first, we load dicom by DcmFileFormat and get its dataset. Then, we use stack to receive all specific elements from dataset with function DcmItem::findAndGetElements. Finally, we can travel the stack as follow : set->findAndGetElements(DCM_Num...
by sam24666806
Wed, 2016-01-13, 03:09
Forum: DCMTK - General
Topic: How to modify tag in the dataset.
Replies: 9
Views: 11535

Re: How to modify tag in the dataset.

Yes, please use putAndInsert[Type].
Thanks for your reply.

But I have another question.

How should I get or check a tag in a sequence of dcmDataSet ?

Can I find the parent tag(tag with SQ type) for the indicated tag?
by sam24666806
Tue, 2016-01-12, 06:59
Forum: DCMTK - General
Topic: How to modify tag in the dataset.
Replies: 9
Views: 11535

Re: How to modify tag in the dataset.

I think I find the solution for this question. I find some code about update attribute of data set as follow. DcmStack stack; DcmTag tag(key); OFCondition cond = EC_Normal; cond = dataset->search(key, stack, ESM_fromHere, OFFalse); if (cond != EC_Normal) { OFLOG_ERROR(storescuLogger, "updateStr...
by sam24666806
Tue, 2016-01-12, 02:55
Forum: DCMTK - General
Topic: How to modify tag in the dataset.
Replies: 9
Views: 11535

How to modify tag in the dataset.

Hello, I have been researching this lib for month. And then I encounter a problem now. If I want to modify dicom tag(such like patient name or its ID), what should I do for this? Are there setting function like getting function Dataset::findAndGet[Type] ? Or I only modify tag with DCModify Lib? Than...
by sam24666806
Tue, 2016-01-12, 02:40
Forum: DCMTK - General
Topic: Problem of Dicom Push
Replies: 2
Views: 3808

Re: Problem of Dicom Push

Thanks for your reply about this question.

I decide to check the continuity of those files with image number rather than total counts finally.
by sam24666806
Wed, 2016-01-06, 03:12
Forum: DCMTK - General
Topic: Problem of Dicom Push
Replies: 2
Views: 3808

Problem of Dicom Push

Hi, I'm a beginner of DCMTK. My main purpose is making a simple dicom file managing system by DCMTK and Sqlite in my work station. I try to trace storescp.cc for receiving dicom files in same series (dicom push(C_STORE)) from PACs and it's works fine. But I encounter a question. The question is that...