Re: Writing several images into a single binary file
- From: rossum <rossum48@xxxxxxxxxxxx>
- Date: Wed, 29 Aug 2007 22:06:08 +0100
On Wed, 29 Aug 2007 22:56:25 +0200, Giff <giffnews@xxxxxxxxxxxxxxxxx>
wrote:
Hi all,When reading the file check for an empty line where the image should
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.
start and take action accordingly.
rossum
.
- Follow-Ups:
- References:
- Prev by Date: Writing several images into a single binary file
- Next by Date: Re: Writing several images into a single binary file
- Previous by thread: Writing several images into a single binary file
- Next by thread: Re: Writing several images into a single binary file
- Index(es):
Relevant Pages
|
|