Quality improvements and analysis of finer niceties in medical images using enhancement and thinning techniques