How to detect an outside open corner

Can it remove only outside corners and not the inside ones?