warpPerspective

fun RgbImage.warpPerspective(quad: Quad, outWidth: Int, outHeight: Int): RgbImage

Perspective-corrects the region bounded by quad into an upright outWidth x outHeight image (the top-left corner of quad becomes the output's top-left, and so on clockwise).