Multi-Frame Images

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Alexander Fedotov
Posts: 53
Joined: Thu, 2005-04-14, 15:07
Location: St. Petersburg, Russia

Multi-Frame Images

#1 Post by Alexander Fedotov »

Which is the best and the fastest way to work with
multi-frame images?

I use DcmFileFormat::loadFile() and
DcmFileFormat::getDataset() methods.

Then I create a new DicomImage(a_pDataset, EXS_Unknown, CIF_MayDetachPixelData) and call
DicomImage::createWindowsDIB()
with the current frame number to play the image.

But it works slow :(

Best regards,
Alexander.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

What is slow: the creation of the DicomImage instance or the call of createWindowsDIB()?

Alexander Fedotov
Posts: 53
Joined: Thu, 2005-04-14, 15:07
Location: St. Petersburg, Russia

#3 Post by Alexander Fedotov »

[quote="Jörg Riesmeier"]What is slow: the creation of the DicomImage instance or the call of createWindowsDIB()?[/quote]

The creation of the DicomImage instance is slow too,
but it is not critical for small multi-frame images
and because it (creation) is done once.

The slow work of createWindowsDIB is critical.
I use the same scheme for playing different one-frame images (files)
and for playing multi-frame images.

In first case it works fine.

Regards,
Alexander.

Alexander Fedotov
Posts: 53
Joined: Thu, 2005-04-14, 15:07
Location: St. Petersburg, Russia

#4 Post by Alexander Fedotov »

Hello All!

I have investigated the problem thoroughly.
The main problem was in swapping when the multi-frame image is scaling, rotating etc.

So this topic can be closed and deleted.

By the way, a lot of DICOM Viewers have problems with
multi-frame images :)

Best Regards,
Alexander.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest