High Speed Image Processing Algorithms and Architecture for Medical Applications