フィルターのクリア

pixel value in given direction

1 回表示 (過去 30 日間)
Aravin
Aravin 2012 年 2 月 28 日
Dear all,
Let say I have point at location (x1, y1). I want to get an other point (x2, y2) at the distance of d pixel in the direction of T, where T is an angle.
Or let say I have circle with radius d with center point (x,y), I want to get an other point at the distance d from center (x,y) in the direction of T.

採用された回答

Junaid
Junaid 2012 年 2 月 28 日
let say you want to get point (x2,y2) then
x2 = x1 + d * cos(T);
y2 = y1 + d * sin(T);
I hope this is what you wanted.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by