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
Name | Description | Type | Default |
---|---|---|---|
class | The class name for the module; must be "InputRawImage". | string | |
name | The name of this instance of the module. | string | |
size_x | Size of the image file | int | 0 |
size_y | Size of the image file | int | 0 |
filename | File 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 | |
filecount | Number of files to read | int | 1 |
iterations | No of times to read the images | int | inf |
repeats | int | 1 |
Module Connections
Outputs
Name | Description |
---|---|
OUTPUT | The image. |
Author
Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science
Files
InputRawImage.h
InputRawImage.cc
InputRawImage.ikc