Sub-Pixel Coordinate Definition


An image is an array of numbers in 1, 2, or more dimensions. Each sample is called a "pixel", which is derived from the phrase "picture element". Although pixels are distinct, whole samples of the image, useful measurements must be made to sub pixel precision. In other words, a centroid position would be quoted as coordinate (204.553,198.234). The question naturally arises as to exactly where this point occurs within the integral pixel position. In other words, how far across pixel 204 is column 204.553? is it actually inside the pixel you see at position 204? Is that 204 pixels from the edge of the image? The answers to these questions are addressed by the FITS standard and FITS conventions. Mira adopts the FITS protocols for measuring sub pixel positions in all image formats. This is shown in the figure and is described below in greater details.

Definition

One potentially odd result of this sub pixel coordinate definition is that the pixel "crosses over" at the middle of the pixel. In other words, suppose you have magnified a displayed image and are viewing a pixel at column 42. When you roam the mouse pointer over column 42, you will see the coordinate display change in the following way: column 41.563, ..., 41.938, 42.063, ..., etc. The jump from 41.xxx to 42.xxx occurs as the pointer crosses the center of the pixel. At first, this may seem odd but it does make sense if you think of a pixel as being a sample of the image that extends for + and - 0.5 pixels from the center of the sample. Therefore, in this example, column 42 extends from coordinate 41.5 to coordinate 42.5.

Related Topics

Image Coordinate System, Pixel Coordinate Definition, World Coordinate System, Image Display Orientation