MATLAB: X,y coordinates in .txt to points on image
imageImage Processing ToolboxMATLAB
Hi there,
I need some help with loading coordinates in a .txt to points in an image. In the attached .txt are all the coordinates. What is the best approache to do this?
A verycommon mistake is to confuse rows and columns with x and y.
Images are arrays and thus the first index is the row, and the second one is the column. So if you ever refer to yourImage(x, y) you could well go out of bounds or certainly will have your operation transposed (rotated 90 clockwise or counterclockwise). You need to use yourImage(y, x),NOT yourImage(x, y)!
Best Answer