Frame-based Programming, Stream-Based Processing for Medical Image Processing Applications