Change the coordinates of an image

4 ビュー (過去 30 日間)
Ayoub EZZAKI
Ayoub EZZAKI 2018 年 4 月 17 日
コメント済み: Rena Berman 2019 年 12 月 12 日
Good morning to everyone
I have an 600 x 400 Gray image, The center of course is the pixel of coordinates [600/2 , 400/2], how can i have the coordinates starting in this pixels ( in other word, the central pixel will be with [0 , 0] coordinates like an axis) ??
Thank you
  1 件のコメント
Rena Berman
Rena Berman 2019 年 12 月 12 日
(Answers Dev) Restored edit

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

回答 (1 件)

jonas
jonas 2018 年 4 月 17 日
dx=-300;
dy=-200;
imshow(I,'Xdata',[1 size(I,1)]+dx,'Ydata',[1 size(I,2)]+dy)

alternatively you can use surf()

カテゴリ

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