module Potracer::Turnpolicy

The Turnpolicy determines how to resolve ambiguities during decomposition of bitmaps into paths.

Constants

BLACK

prefers to connect black (foreground) components

LEFT

always take a left turn

MAJORITY

prefers to connect the color (black or white) that occurs most frequently in a local neighborhood of the current position

MINORITY

prefers to connect the color (black or white) that occurs least frequently in a local neighborhood of the current position

RANDOM

choose pseudo-ramdomly

always take a right turn

WHITE

prefers to connect white (background) components