Package topo :: Package plotting :: Module bitmap
[hide private]
[frames] | no frames]

Module bitmap

source code

Topographica Bitmap Class.

Encapsulates the PIL Image class so that an input matrix can be displayed as a bitmap image without needing to know about PIL proper.

There are three different base image Classes which inherit Bitmap:

PaletteBitmap - 1 2D Matrix, 1 1D Color Map HSVBitmap - 3 2D Matrices, Color (H), Confidence (S), Strength (V) RGBBitmap - 3 2D Matrices, Red, Green, Blue Channels.

All maps are assumed to be on a nominal range of 0.0 to 1.0. Matrices are passed in as part of the constructor and the image is generaed. For more information, see the documentation for each of the Bitmap classes.

The encapsulated PIL Image is accessible through the .bitmap attribute.

$Id: bitmap.py 9256 2008-09-20 16:19:58Z ceball $


Version: $Revision: 9256 $

Classes [hide private]
  Bitmap
Wrapper class for the PIL Image class.
  PaletteBitmap
Bitmap constructed using a single 2D array.
  HSVBitmap
Bitmap constructed from 3 2D arrays, for hue, saturation, and value.
  RGBBitmap
Bitmap constructed from three 2D arrays, for red, green, and blue.
  MontageBitmap
A bitmap composed of tiles containing other bitmaps.
Variables [hide private]
  TITLE_FONT = ImageFont.truetype(resolve_path('Lib/site-package...
Variables Details [hide private]

TITLE_FONT

Value:
ImageFont.truetype(resolve_path('Lib/site-packages/matplotlib/mpl-data/fonts/ttf/V\
era.ttf'), 20)