Application of an automatic ulcer segmentation algorithm