OutputRawImage
This page describes a module in the upcoming version 1.2 of Ikaros and may not be correct for version 1.1
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. 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 | 1.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 | none |
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.
If the matrix element after multiplication with the scale factor is outside the range 0-255 the value used will be unpredictable.
Author
Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science
Files
OutputRawImage.h
OutputRawImage.cc
OutputRawImage.ikc