crop

abstract fun crop(image: ImageRef, quad: List<PointF>): Result<ImageRef>

Crops the given image to the given quadrilateral.

Return

Cropped image.

Parameters

image

The image to crop.

quad

The quadrilateral of normalized points to crop.