MATLAB: I wanted to mark a point in the center of an image

center of an image

i wanted to mark a point in the center of an image(any input image given)… to show the center point of the image also a line passing thru the center point…. what shud i do? please reply..

Best Answer

[rows columns numberOfColorChannels] = size(yourImage);
y_center = rows / 2; x_center = columns / 2;