← back to roto on ba3a.dev

sample

fun sample(raster: Raster, boxes: FrameBoxes, frame: Int, factor: Int): Raster

raster, a frame of the clip, sampled onto the canvas of boxes for frame; pixels beyond the frame are transparent.


fun sample(labels: IndexedRaster, boxes: FrameBoxes, frame: Int, factor: Int): IndexedRaster

A label map — zones, palette labels — with 0, background, beyond the frame.


fun sample(mask: Mask, boxes: FrameBoxes, frame: Int, factor: Int): Mask

mask, a frame's foreground, sampled onto the canvas of boxes for frame; beyond the frame is background.