Patch-Based Techniques in Medical Imaging