Image

UI Object that displays an image elements based on the output from a module. The object can display either a color image by specifying the type "rgb" or a gray scale image by specifying the type "gray". Gray scale images can also be rendered in pseudocolor using the type "fire" or "spectrum" depending on the desired color table.

the image object
Example Color Image View

the image object with pseudocolors
Example Psuedocolor Image Views (fire, spectrum, green)

Example XML definitions

Gray scale image:

  <object
    class="Image"
    module="MY_MODULE"
    source="IMAGE"
    x="0"
    y="0"
  />

Color image with RGB channels from three outputs from a module M:

  <object
    class="Image"
    type="rgb"
    name="Color Output"
    module="M"
    source="RED+GREEN+BLUE"
    x="0"
    y="0"
  />

Attributes

Attribute Description Default
class must be "Image"  
type gray, rgb, fire or spectrum "gray"
x placement of the object  
y placement of the object  
w width of the object 1
h height of the object 1
module name of the module to be visualized  
source name of the output to be visualized; for color images use the form "source1+source2+source3" for the three RGB channels. Starting with version 1.4, all sources must come from the same module.  
file file name of image to show. If set this parameter will override the module and source parameters.
title title of the object module.source

Author

Christian Balkenius
Lund University Cognitive Science
christian.balkenius@lucs.lu.se

Files

Image.js