Search found 10 matches

by abhishekworld
Mon, 2010-05-31, 08:16
Forum: DCMTK - General
Topic: Dicom Image Reading problem with DicomImage
Replies: 7
Views: 8435

Jörg Riesmeier wrote:You need to register the appropriate decoders to your application. See example in the documentation of the "dcmjpeg" module.
Thanks for the help ...
one last question ..
is there any way to find out witch compression is being used on the image ?
by abhishekworld
Mon, 2010-05-31, 08:05
Forum: DCMTK - General
Topic: Dicom Image Reading problem with DicomImage
Replies: 7
Views: 8435

Jörg Riesmeier wrote:That means the image is compressed. If the transfer syntax indicates that a JPEG compression has been used, you could try to convert the pixel data using "dcmj2pnm" (with a "j" in the name).
well can you tell me which API to use for this and how ...??
by abhishekworld
Mon, 2010-05-31, 07:57
Forum: DCMTK - General
Topic: Dicom Image Reading problem with DicomImage
Replies: 7
Views: 8435

What is the output of the command line tool dcm2pnm in verbose/debug mode? dcm2pnm -v test.dcm reading DICOM file: test.dcm preparing pixel data. ERROR: cannot change to unencapsulated representation for pixel data ! $dcmtk: dcm2pnm v3.5.4 2005-12-20 $ dcm2pnm: Convert DICOM images to PGM/PPM, PNG ...
by abhishekworld
Mon, 2010-05-31, 07:47
Forum: DCMTK - General
Topic: Dicom Image Reading problem with DicomImage
Replies: 7
Views: 8435

Dicom Image Reading problem with DicomImage

I have written this code int main() { DicomImage *image = new DicomImage("test_old.dcm"); if (image != NULL) { cout << "Image Status : " << image->getStatus() << endl; ········ if (image->getStatus() == EIS_Normal) { cout << "Imahe Status is Normal"; char *pixelData = (...
by abhishekworld
Fri, 2010-05-07, 10:42
Forum: DCMTK - General
Topic: setWindow on Dicom Image wont work
Replies: 3
Views: 4397

Jörg Riesmeier wrote:What is the return value of setWindow()? Btw, are you processing a color or monochrome image?
I have monochrome image ... and i found that if i dont check dicomImage->isMonochrome() and calles SetWindow then it wont work ...
but now its working after checking ...
by abhishekworld
Fri, 2010-05-07, 08:43
Forum: DCMTK - General
Topic: setWindow on Dicom Image wont work
Replies: 3
Views: 4397

setWindow on Dicom Image wont work

Hi i Have written a code which get data from DicomImage and i am trying to setWidow (center, width ) but no change in output image #include <dcmtk/dcmimgle/dcmimage.h> #include <QImage> int main() { DicomImage *image = new DicomImage("test.dcm"); if (image != NULL) { cout << "Image St...
by abhishekworld
Thu, 2010-04-29, 06:03
Forum: DCMTK - General
Topic: Dicom To JpegConvert Code not working
Replies: 1
Views: 3055

Dicom To JpegConvert Code not working

Hi I have written the code to convert one dicom image to jpeg as follow reference DCMTK doc. the output image won't open its the corrupted image any idea whats wrong ? #define HAVE_CONFIG_H #include <dcmtk/dcmjpeg/djencode.h> #include <dcmtk/dcmjpeg/djrplol.h> #include <dcmtk/dcmdata/dcfilefo.h> #in...
by abhishekworld
Wed, 2010-04-28, 06:56
Forum: DCMTK - General
Topic: Reading Dicom Image
Replies: 4
Views: 4965

Hi Thanks a lot it works :) Hi, Uint32 numPixels = image->getWidth() * image->getHeight(); for (Uint32 i=0; i < numPixels; i++) { out << "the data at position i"<< "=" << i << " is " << *pixelData[i] << OFendl; } I did not compile it but you see how it should work in ge...
by abhishekworld
Tue, 2010-04-27, 12:08
Forum: DCMTK - General
Topic: Reading Dicom Image
Replies: 4
Views: 4965

Michael Onken wrote:Hi,

on first sight: you are just printing the first value in pixel data-- if this is 0 (i.e. probably black), well then your program outputs 0 :)

Best regards,
Michael
hi could you please tell me how to take the next values here really have no idea how to go about it :)
by abhishekworld
Tue, 2010-04-27, 11:11
Forum: DCMTK - General
Topic: Reading Dicom Image
Replies: 4
Views: 4965

Reading Dicom Image

I am totally new to the DICOM imaging and DCMTK i wrote this code, looking at documentation . but in pixelData i am getting \000 any idea is that correct and #define HAVE_CONFIG_H #include <dcmtk/dcmimage/diregist.h> /* required to support color images */ #include <dcmtk/dcmjpeg/djencode.h> #include...