Change the coordinates of an image

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개)

jonas
jonas 2018년 4월 17일

0 개 추천

dx=-300;
dy=-200;
imshow(I,'Xdata',[1 size(I,1)]+dx,'Ydata',[1 size(I,2)]+dy)

alternatively you can use surf()

카테고리

도움말 센터File Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

질문:

2018년 4월 17일

댓글:

2019년 12월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by