1.

For pixels p(x, y), q(s, t), the Euclidean distance between p and q is defined as:(a) D(p, q) = [(x – s)^2 + (y – t)^2]^1/2(b) D(p, q) = |x – s| + |y – t|(c) D(p, q) = max (|x – s| + |y – t|)(d) None of the mentionedThis question was posed to me in an interview for job.This intriguing question originated from Relationship between Pixels and Image Enhancement Basics topic in chapter Image Enhancement of Digital Image Processing

Answer»

Right answer is (a) D(p, q) = [(x – s)^2 + (y – t)^2]^1/2

To ELABORATE: The EUCLIDEAN DISTANCE for pixels p(x, y), q(s, t) is:

D(p, q) = [(x – s)^2 + (y – t)^2]^1/2.



Discussion

No Comment Found

Related InterviewSolutions