function VG, A, PPG= colorgrad(f, T)%COLORGRAD Computes the vector gradient of an RGB image.% VG, VA, PPG = COLORGRAD(F, T) computes the vector gradient, VG,% and corresponding angle array, VA, (in radians) of RGB image% F. It also computes PPG, the per-plane composite gradient% obtained by summing the 2-D gradients of the individual color % planes. Input T is a threshold in the range 0, 1. If it is% included in the argument list, the values of VG and PPG are%