Writing several images into a single binary file
- From: Giff <giffnews@xxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Aug 2007 22:56:25 +0200
Hi all,
I have been successfully writing and reading images to/from binary files just with the image size on the first row and then all the pixel values sequentially, through the read/write functions (I use C++).
Now, I would like to join few images in a single file, separating the single images from each other by a text comment. This usually works, but, sometimes, one of the images is misread and when I check the file, I see an empty line where instead the image was supposed to start. This newline, somehow, screws everything up and the image following it gets completely rubbish.
I am writing greyscale images, a float for each pixel. I use Visual C++ and Win2000.
What would be your suggestion to solve this problem?
Thanks.
.
- Follow-Ups:
- Re: Writing several images into a single binary file
- From: Logan Shaw
- Re: Writing several images into a single binary file
- From: rossum
- Re: Writing several images into a single binary file
- Prev by Date: Re: New language idea - you guys have any feedback?
- Next by Date: Re: Writing several images into a single binary file
- Previous by thread: Problem Debugging C Program
- Next by thread: Re: Writing several images into a single binary file
- Index(es):
Relevant Pages
|
|