rectify Function

fun ScanCutout?.rectify(): RefineFeature

Chooses the right crop mode for a cutout that may be absent: crop to it when there is one, and leave the page uncropped when there is not.

fun ScanPicture.rectify(cutout: ScanCutout)

Crops and straightens the page to an outline, leaving its colours untouched.

A shortcut for ScanPicture.refine with only a crop.

Parameters

  • cutout — to crop
Top