Deep semantic segmentation of natural and medical images: a review