Functions for performing general image processing algorithms that are useful for PIV analysis