Automatic detection of screens defining outer bounds