Algorithms for Medical Image Processing