Coordinates inside an image
Similar to indexing for two-dimensional arrays, the coordinate for a digital image pixel is a pair of two integers, representing the x- and y-coordinates of that pixel; the x-coordinate indicates the pixel's location along the horizontal axis starting from the left, and the y-coordinate indicates the pixel's location along the vertical axis starting from the top.
Here, we can see how heavy computational number-crunching processes are typically involved when it comes to image processing, as each image is a matrix of integer tuples. This also suggests that, with the help of the NumPy library and concurrent programming, we can implement significant improvements in execution time for Python image processing applications. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access