Search found 9 matches

by ghleclerc
Mon, 2022-02-21, 18:50
Forum: DCMTK - General
Topic: Write HU numbers to file
Replies: 2
Views: 1425

Re: Write HU numbers to file

Reading this post, I think that the first method I tried (going through putAndInsertUint16() ) is actually OK.
by ghleclerc
Mon, 2022-02-21, 17:17
Forum: DCMTK - General
Topic: Write HU numbers to file
Replies: 2
Views: 1425

Write HU numbers to file

Hello. I am writing, for a class I teach, a dicom rectangular water phantom generator. Basically, I want someone to be able to say "give me a water phantom of 10 x 20 x 30 cm³" and the program will generate the CT images. I have a proof of concept with pydicom, but because I want to be abl...
by ghleclerc
Wed, 2013-11-27, 18:24
Forum: DCMTK - Installation
Topic: Failed test with snapshot from 20131114
Replies: 4
Views: 10955

Re: Failed test with snapshot from 20131114

Just because if someone searches for log levels, they might find this post, I did find a way to set the log level at runtime. Here is what I came up with. Hope its a better approach then the compilation flag. #include <dcmtk/oflog/oflog.h> using dcmtk::log4cplus::Logger; Logger mainLog = Logger::get...
by ghleclerc
Tue, 2013-11-26, 19:54
Forum: DCMTK - Installation
Topic: Failed test with snapshot from 20131114
Replies: 4
Views: 10955

Re: Failed test with snapshot from 20131114

Thank you for such a rapid response. Much appreciated. Thank you for your detailed report. The issue with "ofstd_markup_6" has just been fixed with the following commit If I want that fix, I just use git to pull the latest working copy ? I am sorry if this is a newbie question, but I have ...
by ghleclerc
Tue, 2013-11-26, 16:02
Forum: DCMTK - Installation
Topic: Failed test with snapshot from 20131114
Replies: 4
Views: 10955

Failed test with snapshot from 20131114

Hello, I am not sure if this is the right place to ask this question. Hoping it is. Sorry if it's not. Just let me know where to do it. I am building DCMTK on Windows. I don't have a choice of my operating system version here at the hospital, so the machine is Windows XP, Service Pack 3. I have Visu...
by ghleclerc
Fri, 2013-11-08, 15:59
Forum: DCMTK - General
Topic: Generic Path extraction
Replies: 7
Views: 6720

Re: Generic Path extraction

Getting off topic here, so don't answer if it's not appropriate. And finally, DCMTK does not make use of RTTI, mainly because of historical reasons. You have to understand that the "dcmdata" module has been designed almost 20 years ago :) Do you have to compile DCMTK with RTTI disabled on ...
by ghleclerc
Thu, 2013-11-07, 22:04
Forum: DCMTK - General
Topic: Generic Path extraction
Replies: 7
Views: 6720

Re: Generic Path extraction

Btw, using the search() method is really low-level. Why don't you use the findAndGetXXX() helper methods instead? Very probably because I don't understand the library very well (and maybe C++). :oops: The way I am doing things, I do a findAndGetElements() on the dataset of my DcmFileFormat to get a...
by ghleclerc
Thu, 2013-11-07, 18:49
Forum: DCMTK - General
Topic: Generic Path extraction
Replies: 7
Views: 6720

Re: Generic Path extraction

Thanks for the quick response. I apologize for the length of my answers, but I'm trying to be clear. Btw, you are aware that there is a DCMTK module specifically for the DICOM RT objects like "RT Plan"? There are a few reasons (good or bad, that is debatable) for trying to be general and w...
by ghleclerc
Thu, 2013-11-07, 16:54
Forum: DCMTK - General
Topic: Generic Path extraction
Replies: 7
Views: 6720

Generic Path extraction

Hello. First post here. Some disclaimers : I am not a programmer and my first language is not english, so some leniency would be appreciated. :) I am looking for a way to find/extract a path (probably a DcmPath object I guess) for a given value (e.g 13) of a given tag (e.g. 300a, 0112) in a given fi...