フィルターのクリア

Hi everyone can anyone help me please i want to find the distance between two points which have the same pixels values or between many points but the value of pixel have the same value i give the two matrices of interest points

1 回表示 (過去 30 日間)
a = 1 : len
xoff(a) =Cxy(a,1) - Cxy1(a,1)
yoff(a) = Cxy(a,2) - Cxy1(a,2)
XYD(a) = sqrt(xoff(a).^2 + yoff(a).^2)
  2 件のコメント
tauseef ahmad
tauseef ahmad 2016 年 4 月 29 日
this the code which i am trying a = 1 : len xoff(a) =Cxy(a,1) - Cxy1(a,1) ; yoff(a) = Cxy(a,2) - Cxy1(a,2); XYD(a) = sqrt(xoff(a).^2 + yoff(a).^2);
Image Analyst
Image Analyst 2016 年 4 月 29 日
編集済み: Image Analyst 2016 年 4 月 29 日
I haven't the slightest idea what that sentence is trying to describe even after reading it several time. Perhaps you can attach a diagram or have another English speaker try to phrase it better. As of now, all I can suggest as a wild guess is to use improfile(), imdistline(), or use sqrt() and the Pythagorean Theorem. Or perhaps use pdist2() in the Stats toolbox.

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

回答 (2 件)

tauseef ahmad
tauseef ahmad 2016 年 4 月 29 日
Hi everyone can anyone help me please i want to subtract these two matrices the same number of element in matrix
xy=[125 133 0 0 0 0 0 0 0 0 0 0 0 0 ; 50 65 0 0 0 0 0 0 0 0 0 0 0 0]
x1y1=[0 0 0 0 0 0 102 0 0 0 0 120 0 0; 0 0 0 0 0 0 63 0 0 0 0 45 0 0]

Image Analyst
Image Analyst 2016 年 4 月 29 日
Regarding your "Answer"
"Hi everyone can anyone help me please i want to subtract these two matrices the same number of element in matrix
xy=[125 133 0 0 0 0 0 0 0 0 0 0 0 0 ; 50 65 0 0 0 0 0 0 0 0 0 0 0 0]
x1y1=[0 0 0 0 0 0 102 0 0 0 0 120 0 0; 0 0 0 0 0 0 63 0 0 0 0 45 0 0]
"
Did you try the obvious:
difference = xy - x1y1

カテゴリ

Help Center および File ExchangeRead, Write, and Modify Image についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by