M-File Help: colordistance | View code for colordistance |
Colorspace distance
d = colordistance(im, rg) is the Euclidean distance on the rg-chromaticity plane from coordinate rg=[r,g] to every pixel in the color image im. d is an image with the same dimensions as im and the value of each pixel is the color space distance of the corresponding pixel in im.
© 1990-2012 Peter Corke.