CImageToPixelLayer Class
August 31, 2021 ยท View on GitHub
This class implements a layer that extracts a set of pixel sequences along the specified coordinates from a set of two-dimensional images.
Settings
There are no settings for this layer.
Trainable parameters
This layer has no trainable parameters.
Inputs
The layer has two inputs.
The first input accepts a blob of integer or float data with a set of two-dimensional images:
BatchLengthis equal to1BatchWidthis the number of sequences in the setListSizeis equal to1Heightis the images' heightWidthis the images' widthDepthis equal to1Channelsis 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:
BatchWidthis equal to the first inputBatchWidthChannelsis 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.
Outputs
The single output returns a blob of the same data type as the first input with the pixel sequences:
BatchLengthis equal to1BatchWidthequals the inputs'BatchWidthListSizeequals the second inputListSizeHeight,Width, andDepthare equal to1Channelsis 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.