[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] colorspace and other vision functions, where do they belong?
- To: pygame-users@xxxxxxxx
- Subject: [pygame] colorspace and other vision functions, where do they belong?
- From: "Nirav Patel" <olpc@xxxxxxxxxxxxxx>
- Date: Fri, 27 Jun 2008 10:37:18 +0900
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Thu, 26 Jun 2008 21:37:28 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=7wZgQenwaElA98dX2jMdtN1gs5eDscx3Md7kohGpPiQ=; b=ORjU6rDiaFakAb75kgRhPXOetTu/qOz4zqk06QckfslzKgVYXmSP6uczUQ6MdlY8eO Xxy8+6JXN61ZXM5hIGlJcKbET9ww2Mvz1COdnzrrNY8F02Mok8NUyNQUdDp6dfAijxSc 7Zg0Mp6oij2Fa2ZyezQzwelu+9D2a051VdIEs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=fwsi/5n8vTRr3tXDtuQAAekGcWvwEb+GNhQNHppIpI6NslsUmxSXAnSpYp9EpWKOBj naK7sL2bXKlqrmeHyCF980A8nfzZy2BT7WgCfpNBra0GD/rcSOsB+17uzxZeqmygGPQ6 LqGhcOFbPSUzEBs34AZK9MJZCPDCQ8tsY0RHI=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hello all,
I've added support for outputting different colorspaces from the
camera, and a Mask.get_centroid() to my pygame branch:
http://git.n0r.org/?p=pygame-nrp;a=summary
With the functions I'm writing now, I'm not sure what modules they
would belong in, or if they should be in a new module. The functions
are things like converting the colorspace of a whole Surface, and
computing optical flow between two surfaces. It makes sense that the
colorspace stuff would go in the color module, except that that module
is currently just for the Color class. Optical flow could go in
transform, but it's not really a transform (though neither is
threshold, which is in it).
The colorspaces function would basically be as follows:
colorspace(Surface, colorspace, colorspace) returns Surface, where the
starting and ending colorspace is "RGB" "YUV" or "HSV".
Nirav