Change the coordinates of an image
Ältere Kommentare anzeigen
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 Kommentar
Rena Berman
am 12 Dez. 2019
(Answers Dev) Restored edit
Antworten (1)
jonas
am 17 Apr. 2018
dx=-300; dy=-200;
imshow(I,'Xdata',[1 size(I,1)]+dx,'Ydata',[1 size(I,2)]+dy)
alternatively you can use surf()
Kategorien
Mehr zu Image Filtering and Enhancement finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!