InputRawImage

Module that reads images in Raw format. The pixel values are scaled from 0-255 in the image to 0-1 in the output.

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 fileint0
size_ySize of the image fileint0
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

blog comments powered by Disqus