This class implements a layer that extracts a set of pixel sequences along the specified coordinates from a set of two-dimensional images.
There are no settings for this layer.
This layer has no trainable parameters.
The layer has two inputs.
The first input accepts a blob of integer or float data with a set of two-dimensional images:
BatchLength
is equal to1
BatchWidth
is the number of sequences in the setListSize
is equal to1
Height
is the images' heightWidth
is the images' widthDepth
is equal to1
Channels
is the number of channels the image format uses
The second input accepts a blob with int
data that contains lists of pixel coordinates, of the dimensions:
BatchWidth
is equal to the first inputBatchWidth
Channels
is the length of each sequence- all other dimensions are equal to
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 same data type as the first input with the pixel sequences:
BatchLength
is equal to1
BatchWidth
equals the inputs'BatchWidth
ListSize
equals the second inputListSize
Height
,Width
, andDepth
are equal to1
Channels
is equal to the first inputChannels
The blob contains the pixel sequences taken from the images of the first input using the coordinates from the second input.