OutputRawImage

This page describes a module in the upcoming version 1.2 of Ikaros and may not be correct for version 1.1

Module used for writing an image (or sequences of images) to file(s). The files are saved in RAW format with one byte per pixel. The size of the file is not saved in the file.

Example XML definition

Example

  <module
      class = "OutputRawImage"
      name = "OUT"
      scale = "1.0"
      suppress = "1"
      offset = "0"
      filename = "image%02d.raw"
  />

Parameters

NameDescriptionTypeDefault
classThe class name for the module; must be "OutputRawImage".string
nameThe name of this instance of the module.string
filenameFile to write the output to. If a sequence will be produced %d must be included in the name. It will be replaced with the sequence number of the file. Standard C formats can be used, e. g. %02d will insert the number with two figures and an initial '0'.string
scaleFactor to multiply each element of the input matrix withfloat1.0
suppressNumber of initial files to supress. Used to stop the write of the first images in a sequence before any output is available.int0
offsetValue to add to the file index.intnone

Module Connections

Inputs

NameDescription
INPUTThe image data to be written to the file

Bugs

If %d is not in the filename each new file will overwrite the previous. Maybe this is a feature.

If the matrix element after multiplication with the scale factor is outside the range 0-255 the value used will be unpredictable.

Author

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

Files

OutputRawImage.h
OutputRawImage.cc
OutputRawImage.ikc