This class implements a layer that creates a set of two-dimensional images using a set of pixel sequences with specified coordinates.
void SetImageHeight( int newHeight );
Sets the height of the output images.
void SetImageWidth( int newWidth );
Sets the width of the output images.
The layer has no trainable parameters.
The layer has two inputs.
The first accepts a blob with pixel sequences, of the dimensions:
BatchLength
is equal to1
BatchWidth
is the number of sequences in the setListSize
is the length of each sequenceHeight
,Width
, andDepth
are equal to1
Channels
is the number of channels the pixels sequences (and the output images) use.
The second input accepts a blob with int
data that contains lists of pixel coordinates, of the dimensions:
BatchWidth
equals first inputBatchWidth
Channels
equals first inputListSize
- the other dimensions equal
1
The coordinates of a pixel (col, row)
are represented in this blob by a single integer number equal to row * GetImageWidth() + col
.
The single output returns a blob of the dimensions:
BatchLength
equals1
BatchWidth
equals inputs'BatchWidth
ListSize
equals1
Height
equalsGetImageHeight()
Width
equalsGetImageWidth()
Depth
equals1
Channels
equals the first inputChannels
The blob contains the set of images with the pixel sequences written into the specified coordinates. The pixels that were not given are filled with zeros.