ApX logoApX logo
ModelsCalculatorHardwareCoursesPricing
ApX logoApX logo
ModelsCalculatorHardwareCoursesPricing

All Courses

Introduction to Computer Vision
Chapter 1: Getting Started with Computer Vision
What is Computer Vision?
How Computers Interpret Images
A Brief History Overview
Common Tasks in Computer Vision
Components of a CV System
Setting Up Your Development Environment
Hands-on: Loading and Displaying an Image
Quiz for Chapter 1
Chapter 2: Digital Image Fundamentals
Pixels: The Building Blocks of Images
Digital Image Representation
Introduction to Color Spaces
Common Image File Formats
Understanding Image Resolution
Image Coordinate Systems
Reading and Writing Image Files
Practice: Exploring Image Properties
Quiz for Chapter 2
Chapter 3: Basic Image Processing Techniques
Point Operations: Brightness Adjustment
Point Operations: Contrast Adjustment
Image Histograms Explained
Histogram Equalization for Contrast Enhancement
Geometric Transformations: Scaling
Geometric Transformations: Rotation and Translation
Introduction to Image Filtering
Basic Smoothing Filters
Hands-on: Applying Basic Image Transformations
Quiz for Chapter 3
Chapter 4: Introduction to Feature Detection
What Are Features in an Image?
Why Detect Features?
Edge Detection Concepts
The Sobel Operator for Edge Detection
The Canny Edge Detector
Corner Detection Concepts
The Harris Corner Detector Idea
Introduction to Feature Descriptors
Hands-on: Detecting Edges in Images
Quiz for Chapter 4
Chapter 5: Introduction to Object Recognition
The Concept of Object Recognition
Template Matching Explained
How Template Matching Works
Limitations of Template Matching
Challenges in Object Recognition
Overview of Machine Learning Approaches
Practice: Simple Template Matching
Quiz for Chapter 5

Image Coordinate Systems

Images are made up of pixels arranged in a grid. To identify the location of any specific pixel, a consistent referencing system is necessary. Image coordinate systems provide this method, acting like a unique address for every pixel within the image grid.

Most image processing libraries and computer vision applications use a coordinate system that might feel slightly different from the Cartesian coordinates you learned in math class. Here's the standard convention:

  1. Origin (0,0): The starting point is located at the top-left corner of the image.
  2. X-axis: This axis runs horizontally from left to right. The x-coordinate represents the column number.
  3. Y-axis: This axis runs vertically from top to bottom. The y-coordinate represents the row number.

So, a pixel's location is typically specified by a pair of values (x,y)(x, y)(x,y), where xxx is the horizontal position (column) and yyy is the vertical position (row), both starting from 0.

A visual representation of the image coordinate system. The origin (0,0) is at the top-left. The x-coordinate increases to the right, and the y-coordinate increases downwards.

Pixel Indexing

When you access a pixel, you use its coordinates. If an image has a width WWW and a height HHH, the pixels are indexed as follows:

  • The x-coordinates range from 000 to W−1W-1W−1.
  • The y-coordinates range from 000 to H−1H-1H−1.

For example, in an image that is 800 pixels wide and 600 pixels high (W=800,H=600W=800, H=600W=800,H=600):

  • The top-left pixel is at (x,y)=(0,0)(x, y) = (0, 0)(x,y)=(0,0).
  • The top-right pixel is at (x,y)=(799,0)(x, y) = (799, 0)(x,y)=(799,0).
  • The bottom-left pixel is at (x,y)=(0,599)(x, y) = (0, 599)(x,y)=(0,599).
  • The bottom-right pixel is at (x,y)=(799,599)(x, y) = (799, 599)(x,y)=(799,599).
  • A pixel somewhere in the middle might be at (x,y)=(400,300)(x, y) = (400, 300)(x,y)=(400,300).

Important Note on Programming Conventions

While the (x,y)(x, y)(x,y) notation (column, row) is common, many programming libraries, especially those using NumPy arrays in Python (like OpenCV), access image data using array indexing which follows a (row, column) or (y, x) convention.

For instance, to access the pixel value at the coordinate (x,y)(x, y)(x,y), you might use code like pixel_value = image[y, x].

  • image[0, 0] accesses the top-left pixel.
  • image[599, 799] accesses the bottom-right pixel in our 800x600 example.

This difference between coordinates (x,y)(x, y)(x,y) and array indexing [y, x] is a frequent source of confusion for beginners. Always check the documentation of the specific function or library you are using to be sure which order it expects. For this course, when discussing coordinates we will often use (x,y)(x, y)(x,y), but when showing code examples involving array access, we will use the [y, x] (row, column) format consistent with libraries like OpenCV and NumPy.

Understanding this coordinate system is fundamental because almost all image processing operations, from simple cropping to complex object detection, require you to know how to specify and access pixel locations accurately.

  • Computer Vision: Algorithms and Applications, Richard Szeliski, 2022 (Springer) DOI: 10.1007/978-3-030-34372-9 - A comprehensive computer vision textbook, with foundational chapters detailing image representation and geometric transformations.
  • Basic Operations on Images (Accessing and Manipulating Pixel values), OpenCV community, 2024 - Official OpenCV documentation illustrating practical pixel access and the row-major (y, x) indexing convention used in computer vision libraries.

© 2026 ApX Machine Learning