MATLAB: Why the coordinates start from 800. want it to start from 0 . and the origin point in the left down like usual.

cordinates

this the code i use
%load the image called test1
rgbImage = imread('test1.JPG');
% Get the dimensions of the image. numberOfColorBands should be = 3.
[rows, columns, numberOfColorBands] = size(rgbImage);
% Display the original color image.
subplot(2, 2, 1);
imshow(rgbImage);
axis on; grid on
title('Original Color Image');

Best Answer

The funtion imshow() flips the y axis. To make the y-axis normal again.
ax = gca;
ax.YDir = 'normal';
However, your image will also flip its y direction.