Search found 13 matches

by shivaenigma
Sun, 2010-03-28, 12:48
Forum: DCMTK - General
Topic: Fast pixel read from dicom files
Replies: 9
Views: 7273

fast pixel read

Here is the code i am using: //dcmtk Headers #include <QTime> #include <QDebug> int main(int argc, char *argv[]) { DcmFileFormat dfile; dfile.loadFile(argv[1]); DcmDataset *pDataSet = dfile.getDataset(); // QTime to used to get the elasped tim QTime time; int choice = QString(argv[2]).toInt(); time....
by shivaenigma
Mon, 2010-03-22, 11:20
Forum: DCMTK - General
Topic: Fast pixel read from dicom files
Replies: 9
Views: 7273

fast pixel read

Any thoughts on this ?
by shivaenigma
Wed, 2010-03-17, 12:39
Forum: DCMTK - General
Topic: Fast pixel read from dicom files
Replies: 9
Views: 7273

fast pixel read

I tried this, but its not working: DcmFileFormat *dfile = new DcmFileFormat; OFCondition cond = dfile->loadFile(fileName); DcmDataset *pDataSet = dfile->getDataset(); Case 1: DicomImage dimage(dfile, pDataSet->getOriginalXfer()); Case 2: DicomImage dimage(pDataSet, pDataSet->getOriginalXfer()); Case...
by shivaenigma
Wed, 2010-02-24, 12:29
Forum: DCMTK - General
Topic: Fast pixel read from dicom files
Replies: 9
Views: 7273

Fast pixel read from dicom files

I timed the statement DicomImage(filename) and it executed in around 20 - 40 ms for files of size 120KB. These seems a long time for me. Here is my scenario, I have already parsed the dicom header and am storing the header values in the memory. Now, I want to do a fast pixel read. Is there someway I...
by shivaenigma
Thu, 2009-10-15, 07:59
Forum: DCMTK - General
Topic: Problem with getUncompressedFrame()
Replies: 3
Views: 7051

The situation is like this Software compiled on Linux --> able to reads all kinds of dicom / multiframe dicom images Same Software compiled on windows -> able to read single frames dicom images including JPEG compressed ones, able to read all types of multiframe dicom images except JPEG compressed m...
by shivaenigma
Thu, 2009-10-15, 07:53
Forum: DCMTK - General
Topic: Problem with getUncompressedFrame()
Replies: 3
Views: 7051

Sorry i deliberately missed the pixel data coz it was too long (7fe0,0010) OB (PixelSequence #=1537) # u/l, 1 PixelData (fffe,e000) pi 00\00\00\00\f8\3f\01\00\4c\80\02\00\14\c1\03\00\f4\00\05\00\d0\40... # 6144, 1 Item (fffe,e000) pi ff\d8\ff\e0\00\10\4a\46\49\46\00\01\01\00\00\00\00\00\00\00\ff\db....
by shivaenigma
Thu, 2009-10-15, 07:49
Forum: DCMTK - General
Topic: Incrementally Writing multiframe data
Replies: 9
Views: 13157

Sorry for creating duplicate posts, I realised that the subject of the thread isnt appropriate for this post. I have clearly mentioned the problem in the new post

viewtopic.php?t=2272
by shivaenigma
Fri, 2009-10-02, 12:10
Forum: DCMTK - General
Topic: Problem with getUncompressedFrame()
Replies: 3
Views: 7051

Problem with getUncompressedFrame()

We are using getUncompressedFrame() to read multiframe. This is working very well however we are having problems with reading JPEG baseline image in windows using this code. The same code works fine in Linux and is able to read JPEG baseline images. Here is the image header # Dicom-File-Format # Dic...
by shivaenigma
Thu, 2009-10-01, 11:59
Forum: DCMTK - General
Topic: Incrementally Writing multiframe data
Replies: 9
Views: 13157

This is working very well however we are having problems with reading JPEG baseline image in windows using this code. The same code works fine in Linux and is able to read JPEG baseline images. Here is the image header # Dicom-File-Format # Dicom-Meta-Information-Header # Used TransferSyntax: Little...
by shivaenigma
Wed, 2009-09-23, 12:13
Forum: DCMTK - General
Topic: Incrementally Writing multiframe data
Replies: 9
Views: 13157

Thanks a lot. This works, here's the example to do this: First write imageData frames into temp file (Just to test we are writing same imageData n times: QFile file("tmpfile"); file.open(QIODevice::WriteOnly); for (int i=0;i<NoOfFrames;i++) { file.write((char*)imageData->GetScalarPointer()...
by shivaenigma
Fri, 2009-09-18, 10:59
Forum: DCMTK - General
Topic: Incrementally Writing multiframe data
Replies: 9
Views: 13157

Hi,
Any updates on this ?
by shivaenigma
Tue, 2009-09-15, 18:06
Forum: DCMTK - General
Topic: Incrementally Writing multiframe data
Replies: 9
Views: 13157

[quote]The only way I can think of is to write all frames into a temporary file, then call DcmElement::createValueFromTempFile() for the pixel data element to replace the original pixel data with a reference to the temporary file[/quote] Hi, I am sorry, I am bit new to dcmtk so not very clear on thi...
by shivaenigma
Tue, 2009-09-15, 13:07
Forum: DCMTK - General
Topic: Incrementally Writing multiframe data
Replies: 9
Views: 13157

Incrementally Writing multiframe data

Hi all, We need to write multi frame dicom image frame by frame, actually we are loading multiframe data frame by frame using getUncompressedFrame() function of DcmPixelData and changing few pixels in the frame. Now, we need to write it back. We dont want to load all the frames in memory! Could you ...