ResizerOptions
data class ResizerOptions(val width: Int, val height: Int, val channelOrder: ChannelOrder, val dataType: DataType, val scaleMode: ScaleMode, val pixelLayout: PixelLayout)
Configures options for a Resizer.
val options = ResizerOptions(
width = 192,
height = 192,
channelOrder = ChannelOrder.RGB,
dataType = DataType.FLOAT32,
scaleMode = ScaleMode.COVER,
pixelLayout = PixelLayout.PLANAR,
)Content copied to clipboard
Throws
Constructors
Link copied to clipboard
constructor(width: Int, height: Int, channelOrder: ChannelOrder, dataType: DataType, scaleMode: ScaleMode, pixelLayout: PixelLayout)
Properties
Link copied to clipboard
Configures the output ChannelOrder the Resizer will write for each resized pixel.
Link copied to clipboard
Configures how the individual channels per pixel are arranged in memory: