Medical image processing and analysis for cancer diagnosis