OutputRawImage

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. Since Ikaros uses floats between 0 and 1 to represent images the input is first multiplied with 255. This can be changed using the scale parameter. 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 withfloat255.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.int0

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.

Author

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

Files

OutputRawImage.h
OutputRawImage.cc
OutputRawImage.ikc

blog comments powered by Disqus