InputPNG
Module used for reading an image (or sequences of images) from a PNG file or a sequence of PNG files. The files can be either gray-scale or RGB.
Example XML definition
A simple example
<module class = "InputPNG" name = "InputPNG" filename = "image.png" />
Read a sequence of three files ten times (e. g. image00.png,image01.png, image02.png):
<module class = "InputPNG" name = "IN" filename = "image%02d.jpg" filecount = "3" iterations = "10" />
Parameters
Name | Description | Type | Default |
---|---|---|---|
class | The class name for the module; must be "InputPNG". | string | |
name | The name of this instance of the module. | string | |
size_x | Size of the input images. | int | 0 |
size_y | Size of the input images. | int | 0 |
filename | File to read the image 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'. | int | |
filecount | Number of files to read | int | 1 |
iterations | Number of times to read the image(s) | int | inf |
Module Connections
Outputs
Name | Description |
---|---|
INTENSITY | The gray level image data read from the file |
RED | The red channel image data read from the file |
GREEN | The green channel image data read from the file |
BLUE | The blue channel image data read from the file |
Acknowledgements
This module borrows heavily from the InputJPEG module by Christian Balkenius.
Author
Jan Moren
jan.moren@lucs.lu.se
Lund University Cognitive Science
Files
InputPNG.h
InputPNG.cc
InputPNG.ikc