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
Name | Description | Type | Default |
---|---|---|---|
class | The class name for the module; must be "OutputRawImage". | string | |
name | The name of this instance of the module. | string | |
filename | File 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 | |
scale | Factor to multiply each element of the input matrix with | float | 255.0 |
suppress | Number of initial files to supress. Used to stop the write of the first images in a sequence before any output is available. | int | 0 |
offset | Value to add to the file index. | int | 0 |
Module Connections
Inputs
Name | Description |
---|---|
INPUT | The 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