Chapter 6. Colormap

Colormap is a device which can recognize a blog into an image (typically from the camera device).

  • x: X position of the blob.

  • Y: Y position of the blob.

  • visible: is the blob visible?

  • ratio: ratio of valid pixel in the image.

  • threshold: how many pixel are valid?

  • orientation: orientation of the blob.

  • elongation: elongation of the blob.

  • ymin: minimum y value to validate a pixel.

  • ymax: maximum y value to validate a pixel.

  • cbmin: minimum cb value to validate a pixel.

  • cbmax: maximum cb value to validate a pixel.

  • crmin: minimum cr value to validate a pixel.

  • crmax: maximum cr value to validate a pixel.

Obviously, the init method is also available:

  • init(source,Ymin,Ymax,Cbmin,Cbmax,Crmin,Crmax,threshold) : source defines the location of the binary data which will be used. On Aibo, source is typically set to "camera.val". The other variables initializes the correspondent attributes.