| Home | Trees | Index | Help |
|
|---|
| Package pyrobot :: Package vision :: Class Bitmap |
|
PyrobotImage --+
|
Bitmap
Bitmap class. Based on Image, but has methods for blobs, etc.
| Method Summary | |
|---|---|
__init__(self,
width,
height,
init_val)
| |
Return an n-tuple of the average color of the image where the bitmap is true, where n is the depth of img. | |
Display bitmap ASCII art. | |
| Inherited from PyrobotImage | |
| |
cropPixels() ------------ crops pixels in the amount specified from left, top, right, and bottom if unspecified, right is assumed to be the same as left and bottom the same as top. | |
Get a pixel value. | |
getBitmap()... | |
Get the entire col, in tuples... | |
returns a filtered image r,g,b values indicate percentage of each color to keep eg. | |
| |
Method to convert depth 3 color into depth 1 grayscale... | |
| |
Get the entire row, in tuples... | |
return a scaled version of the current image... | |
Get the entire color value of the pixel in quetion, returned as a tuple. | |
Creates a histogram. | |
Method to increment a pixel value. | |
Method to load image from file. | |
Reset an image to a vector. | |
reset the image to a specified color... | |
Method to save image to a file. | |
Method to set the entire RGB value of a pixel. | |
| |
| Method Details |
|---|
avgColor(self, img)Return an n-tuple of the average color of the image where the bitmap is true, where n is the depth of img. That is, using the bitmap as a mask, find the average color of img. img and self should have the same dimensions. |
display(self)Display bitmap ASCII art.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jul 25 01:39:28 2005 | http://epydoc.sf.net |