Search found 14 matches

by d2
Thu, 2011-08-11, 15:09
Forum: DCMTK - General
Topic: how to get the current progress
Replies: 7
Views: 8952

I have the same wondering. My software seems to be stuck during dicom reading. But I read a list of dicom files (about 512kB per file), so I can update a progress bar. if there is no way to get the progression of dcmtk process, you can use some tricks: 1) Very ugly: make a logarithmic progress bar: ...
by d2
Tue, 2011-08-09, 10:59
Forum: DCMTK - General
Topic: weight calcuation from segmentation
Replies: 16
Views: 23924

You are right, Kosborn, the Hounsfield unit is linear. The bone density does not vary because the chemical composition is the same for all of us, but the physical structure varies as you said: trabecular, cortical, age, etc. It is more obvious in a CT scan where a voxel density is a mean of bone den...
by d2
Thu, 2011-07-07, 09:01
Forum: DCMTK - General
Topic: weight calcuation from segmentation
Replies: 16
Views: 23924

Are you sure that the rendered output of the pixel data is really the kind of data you need? This data is for image display and nothing else ... exact. I need exactly the same data as recorded in the dicom file. getOutpuData(12) works fine. I get pixel data between 0 and 3000. Converted to HU thank...
by d2
Wed, 2011-07-06, 20:29
Forum: DCMTK - General
Topic: weight calcuation from segmentation
Replies: 16
Views: 23924

Sure! I used getOutpuData(16) before.
But if I call getOutputData() without the bit parameter, the default value 0 is used, and "0 means 'bits stored' in the image" as described in the help.

I will try to call getOutpuData(12) tomorrow...
by d2
Wed, 2011-07-06, 18:35
Forum: DCMTK - General
Topic: weight calcuation from segmentation
Replies: 16
Views: 23924

ok for the depth.

the max pix value is the value of the most light pixel. The highest value of the pixel data.

How do you explain values bigger than 2^bit_stored in the pointer returned by getOutputData()?

thx
by d2
Wed, 2011-07-06, 16:42
Forum: DCMTK - General
Topic: weight calcuation from segmentation
Replies: 16
Views: 23924

still stuck... some new informations: In my software, I use dcmtk to read dicom files: I hide overlays: image->hideAllOverlays(); I unset VOI: image->setNoVoiTransformation(); I memcpy pixel data: image->getOutputData() which contains 12 significants bits but padded to 16 bits. Histogram looks good ...
by d2
Tue, 2011-07-05, 12:40
Forum: DCMTK - General
Topic: weight calcuation from segmentation
Replies: 16
Views: 23924

ok. There are 548 slices in the exam. here is the ouput for the slice 275. Slice 24 was too far from the bone, sorry. I: reading DICOM file: IM275 I: preparing pixel data I: dumping image parameters I: filename : IM275 I: transfer syntax : JPEG Lossless, Non-hierarchical, 1st Order Prediction I: SOP...
by d2
Tue, 2011-07-05, 10:48
Forum: DCMTK - General
Topic: weight calcuation from segmentation
Replies: 16
Views: 23924

Since Rescale Type is not present and the object represents a CT Image, the output of the modality transform has to be in HU. Could you please post the output of "dcmj2pnm -im -o -v <filename>" (from DCMTK 3.6.0) for both DICOM images? I: reading DICOM file: IM24 I: preparing pixel data I...
by d2
Tue, 2011-07-05, 10:13
Forum: DCMTK - General
Topic: weight calcuation from segmentation
Replies: 16
Views: 23924

Thank you for answering me. Did you check and compare the pixel value range in both images? one is resin, near water density. Values are on 12 bits and range is correct. Weight works on it. The other is dry bone. Values on 12 bits too. Range is correct too, but different from the first because mater...
by d2
Mon, 2011-07-04, 11:01
Forum: DCMTK - General
Topic: weight calcuation from segmentation
Replies: 16
Views: 23924

weight calcuation from segmentation

Hi, I don't know where to ask this question, so I post it here. I have a segmented dicom exam. I use the slope and intercept to get hounsfield values: HU = voxel_grey_value * slope + intercept I convert to a weight: vox_weight = HU / 1000 + 1 This weight is good for a 1cm3 voxel, so I scale it: vox_...
by d2
Wed, 2011-06-15, 09:47
Forum: DCMTK - General
Topic: Pixel data in private tag 07a1,100a
Replies: 4
Views: 6425

[SOLVED] Pixel data in private tag 07a1,100a

hi, my previous post disappeared and is signed by you, Michael... :shock: Anyway, As you said, I find the decode algorithm in GDM: http://gdcm.sourceforge.net/html/rle2img_8cxx-example.html and here is the function to decode the RLE pixel data (if the previous link die): void delta_decode(const char...
by d2
Tue, 2011-06-14, 10:25
Forum: DCMTK - General
Topic: Pixel data in private tag 07a1,100a
Replies: 4
Views: 6425

Hi,
Tomovision is free If you accept a watermark on the image :(
Ah, sorry, didnt know that... I think also the GDCM toolkit can decompress it and its open source, so you may take over solution there or just use it for decompression.

Michael
by d2
Wed, 2011-06-08, 16:11
Forum: DCMTK - General
Topic: Pixel data in private tag 07a1,100a
Replies: 4
Views: 6425

Pixel data in private tag 07a1,100a

Hi all, dcmtk seems to be unable to read pixel data in the 07a1,100a private tag. The dicom file comes from a Philips device. Here is a part of a dcmtoxml output: <element tag="01f7,1081" vr="OW" vm="1" len="75368" name="Unknown Tag & Data" loade...
by d2
Wed, 2011-06-08, 16:02
Forum: DCMTK - Installation
Topic: dtmtk compilation on windows 7 with MINGW64
Replies: 1
Views: 5092

dtmtk compilation on windows 7 with MINGW64

Hi all, I recently manage to compile dcmtk 3.6.0 with MING64. Here is the "how to": 1- use cmake for windows, and choose mingw makefiles 2- edit ofstd/include/dcmtk/ofstd/offile.h line 199: replace: #ifdef _WIN32 file_ = _popen(command, modes); #else file_ = :: popen(command, modes); #endi...