Search found 37 matches

by Aimevous
Thu, 2008-07-10, 14:25
Forum: DCMTK - General
Topic: Overlays
Replies: 3
Views: 5247

You should definitely read about Overlays in the DICOM standard (especially part 3 and 5) before trying to encode any Overlay Planes. E.g., OverlayBitsAllocated should always be 1 and OverlayBitsPosition should be 0. Furthermore, the OverlayData contains an array of bits (1 = on, 0 = off) and not a...
by Aimevous
Thu, 2008-07-10, 14:20
Forum: DCMTK - General
Topic: A question on DiPixel::GetRepresentation()
Replies: 7
Views: 11289

The reason for doing so is that I came across a rather peculiar set of DICOM files, while assisting my supervisor who is writing a software to create a 3D visualisation software from DICOM files. There are a total of 3 acquisitions and for one acquisition, the DICOM files are sort of duplicates of e...
by Aimevous
Thu, 2008-07-10, 11:11
Forum: DCMTK - General
Topic: A question on DiPixel::GetRepresentation()
Replies: 7
Views: 11289

I tried tracing through the initialisation of the DicomImage object and my guess was that it was somewhere in the chooseRepresentation() function, but I could not pinpoint exactly where the pixel representation was set.

maybe you can point me to the right function?

thanks.
by Aimevous
Thu, 2008-07-10, 08:15
Forum: DCMTK - General
Topic: A question on DiPixel::GetRepresentation()
Replies: 7
Views: 11289

Hi,

I'm a little confused here. Correct me if I'm wrong, but are you guys saying that if a 16bit image isn't using all the bytes allocated to it, DCMTK will automatically resize it to an 8bit image (if permitted)?

If so, when is this operation carried out?

Thanks!
by Aimevous
Thu, 2008-07-10, 04:48
Forum: DCMTK - General
Topic: Overlays
Replies: 3
Views: 5247

Overlays

I was experimenting with overlays for DICOM images but couldn't find much documentation on it. I examined the tags related to overlay and found a couple so I tried to insert a test layer of overlay data using the following code: /* for overlay testing */ Uint16 overlayimage[256][256]; for (int i = 0...
by Aimevous
Thu, 2008-07-10, 04:39
Forum: DCMTK - General
Topic: Bits Stored, Bits Allocated and High Bit?
Replies: 1
Views: 5894

Bits Stored, Bits Allocated and High Bit?

Hi, I am a bit confused over the 3 terms. I don't exactly know the difference between Bits Stored and Bits Allocated. From Part 5, Section 8 of the DICOM Standard, 2 terms are defined as the following: Bits Stored - total number of the allocated bits that will be used to represent a Pixel Sample Val...
by Aimevous
Wed, 2008-07-09, 08:47
Forum: DCMTK - General
Topic: Dcmtk toolkit usage
Replies: 3
Views: 5633

I have created a rough flowchart of img2dcm (some steps omitted), if anyone is interested.

it is in Ms Visio 2007 format.
by Aimevous
Wed, 2008-07-09, 04:18
Forum: DCMTK - General
Topic: raw data from a DICOM file
Replies: 3
Views: 5587

Hi, getOutputData lets you not access the raw data but the rendered data for (display or whatever) output, ie the DICOM rendering pipeline is already applied on that data. findAndGetUint8Array is the correct function to get the raw data as stored in the DICOM dataset. Be sure that the array size yo...
by Aimevous
Thu, 2008-07-03, 02:34
Forum: DCMTK - General
Topic: bitmap to dicom conversion problems
Replies: 4
Views: 6204

hi, could any of you guys send me the source for the conversion code? I've been trying for the past few days to write a converter but i'm having a lot of problems trying to adapt from img2dcm. What I did was simply create a new cpp file and copied the contents of img2dcm into it and and set the appr...
by Aimevous
Fri, 2008-06-27, 10:02
Forum: DCMTK - General
Topic: Dcmdump queries
Replies: 1
Views: 3533

Dcmdump queries

Hi, I wanted to replicate the DCMDUMP and dump the tags into a GUI instead of console and was examining the DCMDump code and have a few queries... I noticed that when it is printing the Dataset, it calls a dO->print. dO is a DcmObject but when I lookup the print method, it was only defined in the he...
by Aimevous
Tue, 2008-06-24, 09:25
Forum: DCMTK - General
Topic: Which app is used to retrieve DICOM files?
Replies: 3
Views: 4630

Hi, I've been reading the documentation and trying out but I still dont seem to understand how it works. I have a file 0002.dcm stored in my PACS. How do I retrieve it using the movescu? What exactly is the dcmfile-in? I understand its a query file right? So I have to make the dcm file using dump2dc...
by Aimevous
Fri, 2008-06-20, 10:06
Forum: DCMTK - General
Topic: Error while trying to send file using storescu.exe
Replies: 8
Views: 14295

Simply "assigning" a transfer syntax will not ...and then issue a call to DcmFileFormat::changeRepresentation() - you can also see this in dcmdrle and dcmdjpeg.... where is this changeRepresentation called in the 2 applications? Sorry but I don't see this function at all. Could you kindly...
by Aimevous
Thu, 2008-06-19, 09:30
Forum: DCMTK - General
Topic: Which app is used to retrieve DICOM files?
Replies: 3
Views: 4630

Which app is used to retrieve DICOM files?

Sorry if that has been asked before but which exe in the DCMTK is used to retrieve a DICOM file from a PACS or a STORESCP?

I tried MOVESCU but I dont really understand the syntax.

movescu peer port dcmfile-in

whats dcmfile-in?

Can anyone clarify?

Thanks!
by Aimevous
Mon, 2008-06-16, 08:31
Forum: DCMTK - General
Topic: Error while trying to send file using storescu.exe
Replies: 8
Views: 14295

Pardon my ignorance, but if its not a DICOM file, can the image be opened by the tools provided in DCMTK? Do you mean DICOM-compliant? I previously wrote a few functions to read and display pixel data and I was able to display the image from this "DICOM" file, including its many slices. Is...
by Aimevous
Mon, 2008-06-16, 02:08
Forum: DCMTK - General
Topic: Help to send DICOM file
Replies: 5
Views: 8149

Hi, You are looking at the wrong example I think. You have to look at StoreSCU instead. I'm trying to learn this also. What I did was to trace through the entire program to pick out the parts that I need. Perhaps you can refer to this thread: http://forum.dcmtk.org/viewtopic.php?p=5670&highlight...