AI applications to medical images: From machine learning to deep learning