Search found 16 matches

by yoldemir
Wed, 2008-11-19, 01:01
Forum: DCMTK - General
Topic: DiPixel::getData Segfault
Replies: 5
Views: 6727

Jörg, you saved my life again, it works without problems now. Thank you very much!
by yoldemir
Sat, 2008-11-15, 20:27
Forum: DCMTK - General
Topic: DiPixel::getData Segfault
Replies: 5
Views: 6727

None of my trials worked. Can you please check the files to see whether you can read them using DCMTK? http://rapidshare.com/files/164101677/orthodonty_forum.zip.html I am constantly getting segfaults but MATLAB can read and show the files, so I am assuming they are not corrupted. I create a DicomIm...
by yoldemir
Mon, 2008-11-10, 21:29
Forum: DCMTK - General
Topic: DiPixel::getData Segfault
Replies: 5
Views: 6727

DiPixel::getData Segfault

Hello everyone, I have been reading DICOM images for a while (both single and multiframe), I just got another CT data but my code did not work for that. I debugged the code, the point where it crashes is: DicomImage *di = new DicomImage ( dfile, xfer, opt_compatibilityMode , 0, 0); ... const DiPixel...
by yoldemir
Thu, 2008-10-23, 17:06
Forum: DCMTK - General
Topic: Displaying DICOM data
Replies: 9
Views: 7910

I previously tried to change it to Uint32 but got a seg fault. I think I need some debugging.
by yoldemir
Thu, 2008-10-23, 16:22
Forum: DCMTK - General
Topic: Displaying DICOM data
Replies: 9
Views: 7910

First, I create a DicomImage. Then, I use getInterData() to get a DiPixel*. Next, I use getData() and cast the result to Uint16*, which is the original representation. Then, using VTK, I obtain a scalar pointer of type Uint16* to my image and fill it by using the casted values. Finally, I cast the v...
by yoldemir
Thu, 2008-10-23, 16:00
Forum: DCMTK - General
Topic: Displaying DICOM data
Replies: 9
Views: 7910

Might be shifted by one slice but I do not think that is much of a problem, it is clear that textures are totally different.

http://rapidshare.com/files/156815381/G ... 5.dcm.html
by yoldemir
Thu, 2008-10-23, 15:23
Forum: DCMTK - General
Topic: Displaying DICOM data
Replies: 9
Views: 7910

Yes, dcm2pnm works. I have uploaded two images, the output of my program and the output of MATLAB. Might give you an idea.

http://rapidshare.com/files/156805557/l ... s.zip.html

What additional information should I provide?
by yoldemir
Wed, 2008-10-22, 23:34
Forum: DCMTK - General
Topic: Displaying DICOM data
Replies: 9
Views: 7910

Displaying DICOM data

Hello everyone, I have a liver dicom file which I am reading with DCMTK and displaying with VTK. Unfortunately, some details which are not in the actual image show up, as I am checking it with MATLAB. I checked the byte order (LittleEndian, BigEndian) but there is no problem with it. I also changed ...
by yoldemir
Fri, 2008-10-17, 16:08
Forum: DCMTK - General
Topic: DiffusionBValue
Replies: 11
Views: 12414

It worked! Thank you very much Jorg!

As you have stated out, there are 900 orientation vectors and 1020 b-values (repeating for 60 slices).
by yoldemir
Fri, 2008-10-17, 08:51
Forum: DCMTK - General
Topic: DiffusionBValue
Replies: 11
Views: 12414

It is a little bit clearer now. I learned that there are 17 B-values and 17 DiffusionGradientOrientation vectors in this multiframe image. I am probably finding the first B-value and the DiffusionGradientOrientation whereas dcmdump reports some other values(probably the last). I mean, they are both ...
by yoldemir
Thu, 2008-10-16, 19:51
Forum: DCMTK - General
Topic: DiffusionBValue
Replies: 11
Views: 12414

It seems a little weird to give a rapidshare link, but I could not think of a better alternative:) http://rapidshare.com/files/154652144/sample_multiframe.dcm.html For DiffusionGradientOrientation, I get -0.499998, -0.499998, -0.70711 but dcmdump gives 0.70584, -0.706335, 0.0536699. For DiffusionBVa...
by yoldemir
Wed, 2008-10-15, 16:46
Forum: DCMTK - General
Topic: DiffusionBValue
Replies: 11
Views: 12414

Actually, I cannot say that I have understood what you mean. Following the example in the dcmdata documentation, I am trying to extract tags. Where do I exactly need to specify the sequence item? Here is the my whole code for the part that reads tags: DcmFileFormat dicom_img; OFCondition status = di...
by yoldemir
Wed, 2008-10-15, 11:59
Forum: DCMTK - General
Topic: DiffusionBValue
Replies: 11
Views: 12414

OK, I am now able to extract some values but not the correct ones. I use the following code to extract DiffusionBValue: if ( !flag && (tag.toString() == "(0018,9087)") && dicom_img.getDataset() -> findAndGetFloat64 ( tag, patientsY, position, OFTrue ).good() ) { cout << pat...
by yoldemir
Wed, 2008-10-15, 09:53
Forum: DCMTK - General
Topic: DiffusionBValue
Replies: 11
Views: 12414

Oh how can I not see that! Thank you very much Jorg. I have another question though. What does 'pos' exactly stand for? The documentation says 'index of the value in case of multi-valued elements (0..vm-1)' but I cannot get it as I am new in the field. I don't know the value I should use to extract ...
by yoldemir
Tue, 2008-10-14, 15:20
Forum: DCMTK - General
Topic: DiffusionBValue
Replies: 11
Views: 12414

DiffusionBValue

I have previously stated my problem by replying to a relevant post but could not get an answer. So I am setting the same question forth: I am trying to read some tags from a Philips DICOM image. I am able to read simple tags like patients name, sex, etc. However, I cannot get DiffusionBValue and Dif...