문제

I have a 2032 x 2032 image (image1) I am trying to display using

figure(1)
imagesc(image1);

The x and y-axes are displaying the pixel count (i.e. 1-2032) with the smallest value being in the upper left-hand corner and the greatest value in the lower right-hand corner.

How do I set the x and y-axes to a cartesian coordinate setup ranging from (-1016 to 1016) with (0,0) located in the center?

도움이 되었습니까?

해결책

You can specify the axis values in imagesc:

imagesc(-1016:1015,-1016:1015,image1):
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top