RefineFeature Class
sealed class RefineFeature
What ScanPicture.refine should do to a page: how to crop it, how to treat its colour, and which way up to leave it.
Pass a list holding at most one feature of each kind — one Rectify, one Profile, one Display, and so on. Kinds you leave out are left unchanged.
picture.refine(listOf(
RefineFeature.Rectify.WithCutout(cutout),
RefineFeature.Profile(RefineFeature.Profile.Type.Bitonal),
))
Inheritors
Types
Display
class Display(orientation: ScanOrientation) : RefineFeature
Rotate the page to the given orientation once the rest of the processing is done.
KeepColor
class KeepColor(keepColor: Boolean = false) : RefineFeature
Leave the page’s colour hint unchanged rather than letting processing set it.
Profile
class Profile(type: RefineFeature.Profile.Type) : RefineFeature
The colour treatment to apply to the page.
Rectify
abstract class Rectify : RefineFeature
How to crop and straighten the page.
Shadows
class Shadows(shadows: Boolean = false) : RefineFeature
Even out shadows and uneven lighting across the page.