[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reading images from internal char string

From: Richard KIrk
Subject: Re: Reading images from internal char string
Date: Thu, 21 Jul 2016 06:55:44 -0700 (PDT)

If I had this job, I would cheat. 

If you know all the images are the same size and uncompressed...
- save the first string to a file, & read it.
- get the image size from the file, and hence the number of bytes to the
image data
- get the string, step back from the end by the number of bytes, fread,
- repeat for the following files.

A more advanced version would check you have got the right starting values
to the
image, and add offsets for line and frame padding as necessary.

View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]