help-octave
[Top][All Lists]
Advanced

[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,
permute
- 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: 
http://octave.1599824.n4.nabble.com/Reading-images-from-internal-char-string-tp4678727p4678737.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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