Partial implementation of code/vector border detection and filtering.