Extract HBITAMP from multiframe dcm

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
mesajflaviu
Posts: 16
Joined: Mon, 2016-12-05, 10:00

Extract HBITAMP from multiframe dcm

#1 Post by mesajflaviu »

Hi all of you. Can you tell me if there is a way to extract HBITMAP from an multiframe DICOM file, in order to make a avi file ?
Thank you for any hint/help.

Regards,

mesajflaviu
Posts: 16
Joined: Mon, 2016-12-05, 10:00

Re: Extract HBITAMP from multiframe dcm

#2 Post by mesajflaviu »

Or, how can I save every frame from multi-frame DICOM file ? Because if I will achieve this, I will get every HBITMAP from saved files, and make an .avi from that files ...

Michael Onken
DCMTK Developer
Posts: 2048
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Extract HBITAMP from multiframe dcm

#3 Post by Michael Onken »

Hi,

use the dcm2pnm (or dcmj2pnm) tool to extract all frames and save them to BMP (for example). Option +Fa selects all frames.

In order to do the same thing in your own code, look at how it is done in dcm2pnm.

Best,
Michael

mesajflaviu
Posts: 16
Joined: Mon, 2016-12-05, 10:00

Re: Extract HBITAMP from multiframe dcm

#4 Post by mesajflaviu »

Kindly thank you, that is how I solved the task: I saved bitmap files, and extract from them HBITMAP structure.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 1 guest