Search found 101 matches

by omarelgazzar
Mon, 2012-03-12, 13:41
Forum: DCMTK - General
Topic: Get Pixel data from compressed files
Replies: 1
Views: 2522

Look at this HowTo.
by omarelgazzar
Thu, 2012-03-01, 15:28
Forum: DCMTK - General
Topic: convert jpg to dicom c++
Replies: 36
Views: 43717

This is achieved by the function DCMSCU::addPresentationContext() and proposing the jpeg8 transfer syntax in one of the transfer syntaxes of the presentation context. Look at dcmsend as an example in the last DCMTK snapshot.
by omarelgazzar
Tue, 2012-02-28, 13:42
Forum: DCMTK - General
Topic: convert jpg to dicom c++
Replies: 36
Views: 43717

Hello, I tried to view the images with Sante DICOM Viewer the result was fine and as expected. I compared your output DICOM image with the output of the img2dcm and they are using the same photometric interpretation color model YBR_FULL_422. So, it seems the problem is in the Synedra viewer which do...
by omarelgazzar
Mon, 2012-02-20, 12:40
Forum: DCMTK - General
Topic: How to initialize length of OutputBufferStream
Replies: 6
Views: 6775

I have tested on my machine to compress a DICOM file and to use DcmElement::calcElementLength() to calculate the DICOM pixel data length before and after compression and worked fine with me. Your code portion does not show how did you use the function calcElementLength(). Make sure that you load all...
by omarelgazzar
Fri, 2012-02-17, 16:57
Forum: DCMTK - General
Topic: How to initialize length of OutputBufferStream
Replies: 6
Views: 6775

Can you show your tested source code in order to help you finding the problem?
by omarelgazzar
Fri, 2012-02-17, 08:44
Forum: DCMTK - General
Topic: License usage
Replies: 2
Views: 18412

Read this FAQ.
by omarelgazzar
Fri, 2012-02-17, 08:09
Forum: DCMTK - General
Topic: How to initialize length of OutputBufferStream
Replies: 6
Views: 6775

The uncompressed pixel data length can be manually computed as it equals rows * columns * bits allocated * number of frames * number of samples. Automatically, you can just call the function DcmElement::calcElementLength() to calculate the length of the pixel data DICOM attribute before and after co...
by omarelgazzar
Mon, 2012-01-23, 20:42
Forum: DCMTK - General
Topic: compress DICOMDIR file entries?
Replies: 8
Views: 8917

Hello, According to DICOM part 11, there are media storage application profiles which specify a selection of choices including the supported SOP class UID and the transfer syntax of the icon images. The default profile is the general purpose profile which does not support compression transfer sytaxe...
by omarelgazzar
Thu, 2012-01-19, 12:54
Forum: DCMTK - General
Topic: "Pixel representation not found" on compression
Replies: 9
Views: 10870

Hi, after you fill in the pixel data manually, you should call the function chooseRepresentation() to compress the pixel data and then call the function saveFile() to save the dataset with the compressed transfer syntax. So, you should call the line status = dataset->chooseRepresentation(EXS_JPEGPro...
by omarelgazzar
Wed, 2012-01-18, 16:45
Forum: DCMTK - General
Topic: "Pixel representation not found" on compression
Replies: 9
Views: 10870

After loading the dataset and calling the chooseRepresentation() function you don't need this line of code

Code: Select all

dataset->putAndInsertUint8Array(DCM_PixelData, (const Uint8*)dataArray, size*sizeof(unsigned short)); 
you can just save the dataset with the same chosen transfer syntax.
by omarelgazzar
Tue, 2011-11-29, 09:31
Forum: DCMTK - General
Topic: ASC_requestAssociation hangs
Replies: 2
Views: 5194

I don't see a problem in this portion of your code but a problem could happen if you do not release the store association used for receiving the DICOM instances before starting a new association request for forwarding those instances to a remote destination.
by omarelgazzar
Tue, 2011-11-29, 09:10
Forum: DCMTK - General
Topic: DCMQRSCP and ON THE FLY COMPRESSION
Replies: 5
Views: 13904

A workaround to solve this problem is to use the option --propose-jpeg8 in dcmqrscp and let movescu prefer it using the option --prefer-jpeg8 which will avoid the need to convert the file on the fly from the actual transfer syntax to accepted transfer syntax. This will let you send the study with co...
by omarelgazzar
Fri, 2011-11-25, 16:09
Forum: DCMTK - General
Topic: support for dicom file SopClass 'Philips iE33 private 3D Object Storage'
Replies: 5
Views: 7318

Look at this HowTo
by omarelgazzar
Sun, 2011-11-20, 13:19
Forum: DCMTK - General
Topic: Cannot get SeriesDescription key with findscu?
Replies: 2
Views: 3675

The series description attribute is optional key if you query on the series level using the patient root Q/R information model (see DICOM Part 4 C.6.1.1.4). A C-FIND SCP may not support the existence of an optional key, or support its existence in the find response but without supporting matching it...
by omarelgazzar
Tue, 2011-11-15, 14:26
Forum: DCMTK - General
Topic: Help with DICOMDIR and CD viewer
Replies: 18
Views: 27230

look at this post