InputRawImage

Module that sums its two inputs element by element, which can be one or two dimensional. Both inputs must have the same size.

Example XML definition

Read a single file once

  <module
      class = "InputRawImage"
      name = "IN"
      size_x = "128"
      size_y = "128"
      filename = "image.raw"
  />

Read a sequence of three files ten times (e. g. image00.raw, image01.raw, image02.raw)

  <module
      class = "InputRawImage"
      name = "IN"
      size_x = "128"
      size_y = "128"
      filename = "image%02d.raw"
      filecount = "3"
      iterations = "10"
  />

Parameters

NameDescriptionTypeDefault
classThe class name for the module; must be "InputRawImage".string
nameThe name of this instance of the module.string
size_xSize of the image fileint
size_ySize of the image fileint
filenameFile to read from. If a sequence will be produced %d must be included in the name. It will be replaced with the sequence number of each file. Standard C formats can be used, e. g. %02d will insert the number with two figures and an initial '0'.string
filecountNumber of files to readint1
iterationsNo of times to read the imagesintinf
repeatsint1

Module Connections

Outputs

NameDescription
OUTPUTThe image.

Author

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

Files

InputRawImage.h
InputRawImage.cc
InputRawImage.ikc