Learn R Programming

handwriter (version 3.1.1)

whichToFill: whichToFill

Description

Finds pixels in the plot that shouldn't be white and makes them black. Quick and helpful cleaning for before the thinning algorithm runs.

Usage

whichToFill(img)

Value

A cleaned up image.

Arguments

img

A binary matrix.