sean finney on 11 Dec 2003 00:55:03 -0500


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

Re: [PLUG] pixels


hi jeff,

try converting it to a ppm file with something like imagemagick, and
then reading in data, which is pretty easy to parse from a c program
(it's just a header + pixels as rgb(a?) chars).  i actually have some code
that reads a ppm file and returns an array of r,g,b pixels floating around
somewhere.  if you'd find it helpful, feel free to contact me off list.

	sean

On Wed, Dec 10, 2003 at 11:59:40PM -0500, Jeff Abrahamson wrote:
> I have an image (b&w, as it happens).
> 
> I want a list of pixel values by coordinate.  I don't want to spend
> hours doing this.
> 
> Any thoughts on how to pull this off?
> 
> -- 
>  Jeff
> 
>  Jeff Abrahamson  <http://www.purple.com/jeff/>
>  GPG fingerprint: 1A1A BA95 D082 A558 A276  63C6 16BF 8C4C 0D1D AE4B


Attachment: signature.asc
Description: Digital signature


  • References: