[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] image.load() -->> array?
- To: pygame-users@xxxxxxxx
- Subject: [pygame] image.load() -->> array?
- From: AlgoMantra <algomantra@xxxxxxxxx>
- Date: Thu, 25 Oct 2007 17:03:52 +0530
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 25 Oct 2007 07:34:00 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=HbrYEYDraddxMhYK8q3ezdu0dJMmQWMSNqZI5ZsnBnA=; b=ukf0kK/DxUV05QEjFq3a8Gbg7576sniNJKcMSe5Tg8fhB1hzpk0/3ykIry2364aW8gSfio1ubdiCokDPA4tiT6EKCjzQ7Pyt/8raRvy5QYZFfXD70JXcyigC73UdeXQRk/7H+tU/qozUi4TDBX0gB7vo2We3VQaJnWQ3HCgejbo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=NBIzIHBiWd4cIVZHznb2sLq75Srr1HvrBFJOXqPedEt+E1ECBdDAfj361HYllIs8QpKFEb3t5HI8bP554S4q/oiAUTpLf0xWoX8b0iFSKz5QXHlmZNDyrXOYgQBjSNva7ZmVglbzCyy/m1szkUZnR7hfBMWppZXls1HvmZ7BfVQ=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi All,
So I'm accessing and modifying pixels of a video capture image stream using
image.load() which type() tells me is a "PixelAccess" object.
I have a 160X120 image in RGB.
Is there a simple way to convert this into an array for applying functions
using Numpy? If the (x,y) coordinates for pixel access remain the same,
that is...
--
------- -.-
1/f ))) --.
------- ...
http://www.algomantra.com