Search found 99 matches

by Per
Mon, 2012-10-01, 08:00
Forum: DCMTK - General
Topic: Parsing dcmdump with BASH on Linux
Replies: 5
Views: 6065

Re: Parsing dcmdump with BASH on Linux

This sounds like a very bad idea. Probably based on the mistaken idea that each tag always only exists once within a file. You need the nesting context to know that you are reading the correct tag.
by Per
Mon, 2012-09-17, 11:54
Forum: DCMTK - General
Topic: storescp: --fork and --exec-on-eostudy
Replies: 4
Views: 6285

Re: storescp: --fork and --exec-on-eostudy

I believe I have reported this issue previously. The problem is that there is no communication between the various processes created by forking, so they do not know that a study has been received.

I do not believe this is easy to fix.

(inetd does implicit forking, btw.)
by Per
Wed, 2012-07-04, 16:30
Forum: DCMTK - General
Topic: NII -> DICOM
Replies: 14
Views: 19471

Re: NII -> DICOM

Now it should work. Mind you, it will only work with modern multi-frame DICOM files. To use, run ./zzdcm2nifti mydicomfile mynewniftifile Then edit 'mynewniftifile'. Finally, ./zzniftistitch mydicomfile mynewniftifile mynewdicomfile Now 'mynewdicomfile' should contain your modifications to 'mynewnif...
by Per
Tue, 2012-07-03, 16:16
Forum: DCMTK - General
Topic: NII -> DICOM
Replies: 14
Views: 19471

Re: NII -> DICOM

Since it looks like weather will turn sour this weekend, I might just feel inspired to complete it :) This turned out to be a fine weekend, so I did not feel inclined to do much programming, but I have something that "should have worked" now, except it doesn't, and I just need to figure o...
by Per
Fri, 2012-06-29, 09:49
Forum: DCMTK - General
Topic: NII -> DICOM
Replies: 14
Views: 19471

Re: NII -> DICOM

Basically, just export the nifti data that you have to DICOM using the official niftilib, then fill in the holes with data supplied from the original DICOM series. Incidentially, I have been writing a program to do such a conversion, but I never finished it. Since it looks like weather will turn sou...
by Per
Wed, 2012-06-27, 08:31
Forum: DCMTK - General
Topic: NII -> DICOM
Replies: 14
Views: 19471

Re: NII -> DICOM

It is difficult, and dangerous. Be aware that the nifti format usually lacks some critical information that DICOM needs, and safely restoring a proper DICOM volume from a nifti volume is not possible as a general case. If you have a known, fixed workflow, as I think is what you described, you can re...
by Per
Mon, 2012-04-16, 08:21
Forum: DCMTK - General
Topic: Transferring dicom files over Internet
Replies: 2
Views: 3786

Intriguing. Can you give some more details of what kind of DICOM data you are sending, and what Synapse users see when they think the transfer is complete? You could also try to look at a process viewer while receiving files, to see whether the bottleneck is the CPU (dcmtk issue), and whether the ne...
by Per
Tue, 2012-03-27, 08:14
Forum: DCMTK - General
Topic: Question for C-Echo Service
Replies: 3
Views: 4176

In practice, all SCPs will support C-ECHO. I'm not sure if it is required.
by Per
Thu, 2012-01-12, 13:39
Forum: DCMTK - General
Topic: Siemens CD
Replies: 1
Views: 2990

Most DICOM libraries, including DCMTK, will read ACR-NEMA files just fine. You usually cannot automatically convert them to DICOM, though, since they often lack required information or the information is not as precise as required by DICOM.
by Per
Sat, 2011-09-10, 15:18
Forum: DCMTK - General
Topic: question about JpegLossless encoder/decoder implementation in dmctk
Replies: 3
Views: 4704

There are several lossless algorithms implemented. The easiest to use is simply lzw compression (simply called 'compression') - it is not nearly as good as the others, but it should be well supported. If you need better compression ratio, you should use the JPEG-LS algorithm, which is new in DCMTK 3...
by Per
Wed, 2011-08-31, 07:44
Forum: DCMTK - General
Topic: Rearding window level / window width For multi frame images
Replies: 1
Views: 3674

It depends. If your multiframe image is a volume, you should probably calculate window level for the entire volume at once, not per frame. Or use the included window level in the DICOM tags for the entire volume. You may want to ask the user which of the two they want to use, since the latter may ha...
by Per
Fri, 2011-08-26, 08:31
Forum: DCMTK - General
Topic: Why are DIMSE commands always little endian implicit?
Replies: 4
Views: 5867

It is the default transfer syntax. So if it does not say otherwise, or there is no mechanism for negotiating something else, that is what will be used.
by Per
Fri, 2011-08-05, 10:04
Forum: DCMTK - General
Topic: SUPPORT OF CHARACTER REPERTOIRES (DICOM part 5)
Replies: 3
Views: 4209

Aren't everyone converting over to utf8 anyways? Seems like adding decent support for that might go a long way, while the multibyte or character page stuff could be ignored until it goes away by itself. Or am I just too hopeful for some breakout of sanity in the DICOM world?
by Per
Wed, 2011-07-27, 12:33
Forum: DCMTK - General
Topic: storescp -xcs does nothing when used with the --fork option
Replies: 9
Views: 14846

You could solve this by using threads instead of forking, although you would run into the portability issue. What is the DCMTK policy on dependencies? There exist a number of good, portable libraries that could be used here to solve such issues without getting into all kinds of platform specific hac...
by Per
Sat, 2011-07-23, 02:53
Forum: DCMTK - General
Topic: storescp -xcs does nothing when used with the --fork option
Replies: 9
Views: 14846

Yes, I have also noticed this. The problem is that there is no IPC mechanism to update the information about what has been received, each forked copy of the program keeps its own information to itself.