warp

abstract fun warp(bgraRawImage: BgraRawImage, corners: Corners, targetImageSize: ImageSize): BgraRawImage

Perspective warp of an image according detected document corners. This operation should be called on a background thread.

Return

Warped image.

Parameters

bgraRawImage

BGRA raw image.

corners

Corner points.

targetImageSize

Size of the warped image.