Calculating euclidian distance in RGB spaces

2 ビュー (過去 30 日間)
Durga
Durga 2015 年 6 月 22 日
コメント済み: Durga 2015 年 6 月 22 日
The formula for calculating euclidian distance in LUV spaces is:
Diff=E= [( L*)^2 +( U*)^2+( V*)^2]^1/2
∆L is the * difference between- the values of the pixels * in L components, not between the coordinates of the pixels..
Likewise ,in RGB spaces,is the formula same?
  2 件のコメント
Adam
Adam 2015 年 6 月 22 日
That is always the definition of Euclidean distance. The only assumption is that you are in a Euclidean space. Mathematically you may be, but visually is a different matter when it comes to colour of course.
Durga
Durga 2015 年 6 月 22 日
thank u sir

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2015 年 6 月 22 日
You can calculate a Euclidean distance that way, square root of sum of the squares of the differences in values. But it will not have the same properties as delta-e in LUV or delta-e in LAB space (for which see http://www.mathworks.com/matlabcentral/answers/73741-how-to-identify-boundaries-of-shapes-in-an-image-using-the-change-in-color#comment_145951)
  1 件のコメント
Durga
Durga 2015 年 6 月 22 日
It helped..thank u sir.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFiles and Folders についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by