[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Binary data to BMP file format

Posted on 2006-06-19
3
Medium Priority
?
443 Views
Last Modified: 2013-11-19
How to convert binary data to BMP format?
I acquired raw data from a camera 320x240 pixels per frame. I have one binary file containing 3600 frames. I need to write a program in C++ to take the file and convert each frame to a BMP image.

 
0
Comment
Question by:almhuq
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
rajeev_devin earned 375 total points
ID: 16939396
0
 
LVL 18

Expert Comment

by:Jose Parrot
ID: 16948020
Hi,

Chances to be wrong, as I have a sequence of assumptions.
As you  have 3600 frames, I understand it is a clip, a short film in 320x240 pixels format, BTW a typical small format film. Most film cameras or photo cameras capturing films record the films in mpg format.

If these assumptions are correct, what you need is to convert a MPG or AVI film by exporting each frame to a series of BMP image format. As you tell abot a raw file it icould be also an uncompressed file.

Whatever you have, you must know what format is, to chose the right codec to decode the film. As soon you read the file, your program can convert frame by frame to BMPs. This will be a complicated task, if you are not an experienced graphics programmer. And a tedious task.

A practical way to do it is simple play your film and, at same time, run a program that capture the image at a appropriated rate, say 15 or 30 mframes per second. Such capturing program can be found at
http://www.codeguru.com/cpp/g-m/bitmap/capturing/article.php/c4919/

Things will be simpler if you know the raw film format. And much more simpler if the raw file isn't compressed.

You can share more information with us, if you have more.

Jose
0
 
LVL 18

Expert Comment

by:Jose Parrot
ID: 16956801
Please accept my appologies due my mistake. I didn't pay attention on rajeev_devin answer and have suggested the same! Thank you. Sincerely, Jose
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Add visuals to your Prezi to keep your audience engaged. Learn how to embed images, edit them, and more in this video micro tutorial. Select "Insert" from the top menu in your Prezi editor: Select "Image": A toolbar will pop in from the right …
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question