<p>Here's my take on it.  A pixel is not a square, and it isn't even a rectangle.  A pixel is a point (infinitely small) that has a color associated with it.</p>

<p>The only way I personally have ever seen pixels viewed (interpreted) by a display is to use "nearest neighbor" sampling where the pixels were on a rectangular grid, which means that the color of any given space on a display is the color of the pixel that it is nearest to.</p>

<p>This is a fancy way of saying "pixels are rectangular and laid out on a grid", but stay with me on this :P</p>

<p>As a result, image formats have their pixels stored in a grid as well, with the assumption that nearest neighbor in a grid will also be used to display it.  For instance, many images will have anti aliasing built into them so that they will look good when displayed on a "nearest neighbor grid".</p>

<p>Interactive applications (games), may use textures that are not meant to be displayed as is on nearest neighbor grids so are kind of an exception to that rule.  They do this because as part of their execution, they do anti aliasing, bilinear texture sampling, etc, so that whatever picture they push out to the display will look good, when the display shows it as a nearest neighbor grid!</p>

<p>Now, getting closer to your question: would a hexagonal grid have any advantages?</p>

<p>I think that yes, it would!</p>

<p>First off, I think nearest neighbor would look better.  I don't have any real proof of that sorry, but the hexagon more closely approximates a circle, and since it isn't a regular grid of data, i think your eye is getting a better distribution of data.  Sorry, that is a little hand wavey.</p>

<p>I think the big part of why it would look better though is that linear filtering would be taking information from 6 neighbors instead of 4, and would be interpolating on 3 axis instead of 2.  More information from less regularly spaced samples than a grid gives you = better resulting image.</p>

<p>Doing cubic interpolation would also be better than cubic interpolation on a grid, so the quality scales up as you scale up the quality of your algorithm too.</p>

<p>As far as whether it stores data more efficiently, the fact that it can do better filtering with less data means to me that yes, it could store data more efficiently.</p>

<p>And i guess lastly... maybe you could use these properties to your advantage.  Maybe you could have an image format stored in a lower res hexagonal format, and then before you needed to display the image at runtime, you could use sampling algorithms to convert it back to a grid.</p>

<p>Maybe there'd even be a good way to do this efficiently in a pixel shader, so it would use less memory at runtime too?</p>

<p>It's an interesting idea (:</p>

<p>PS - how cool would it be to have an analog display (no individual pixels, but a continuous colored surface) that looked at the pixel data you sent not as rectangles, but instead as sample points on a continuous surface.  Maybe a bit out there though....</p>

CC BY-SA 3.0
2015-08-05T19:07:42.360Z
You dont need to store each color plane in each pixel even, or have the planes in same configuration.  BUT you loose separable filtering
joojaa
CC BY-SA 3.0
2015-08-05T19:16:29.310Z
Good points! Separable filtering is pretty big.  I wonder if you could do 3 axis filtering for hexagons?
Alan Wolfe
CC BY-SA 3.0
2015-08-05T18:53:15.353Z
2015-08-05T18:53:15.353Z
Alan Wolfe
<p>If one examines old CRT television displays, one will observe red, green, and blue phosphor dots in a triangular lattice.  Some LCD television sets had a somewhat similar arrangement; pixels were rectangular rather than square, but successive rows of pixels were staggered so that the horizontal position of a red pixel on one row would be halfway between the positions of the nearest red pixels on the row above, and would match the position of a red pixel two rows up.</p>

<p>When showing "analog" pictures, such arrangements will improve the visual quality of image that can be obtained with a given number of pixels.  On computer displays, however, there are a lot of lines that should appear perfectly horizontal, and a lot of lines that should appear perfectly vertical.  A rectangular grid can accommodate both easily.  A hexagonal grid, however, can only accommodate one or the other, and the one which isn't accommodated will appear rather nastily jagged.</p>

CC BY-SA 3.0
2016-03-26T05:31:50.900Z
So not good for excel :)
joojaa
CC BY-SA 3.0
2016-03-25T21:25:36.990Z
2016-03-25T21:25:36.990Z
supercat
<p>Most computer monitors and televisions have a rectangular array of pixels arranged on a square (or nearly square) lattice. Would a hexagonal lattice give better image quality for the same number of pixels? In other words, would the same amount of memory allow storage of more detail?</p>

<p>I have an intuitive feeling that (at least slightly) more detail should be possible from the same number of pixels with a hexagonal lattice because (for a fixed area image) the average distance to the nearest pixel centre will be lower than with a square lattice. I'd like to see the difference defined more concretely.</p>

<hr>

<p>Even if the answer is "yes", I don't expect monitor manufacturers to suddenly start making hexagonally arranged pixels. However, I ask the question because I wonder whether there would be anything to be gained from storing images as hexagonal lattices of pixels, even if they are translated to square lattices of pixels for display purposes.</p>

CC BY-SA 3.0
2016-01-01T19:27:16.227Z
[Related question on SuperUser.](http://superuser.com/q/1019825/215723)
Martin Ender
CC BY-SA 3.0
2016-03-28T05:07:44.823Z
FWIW, I've heard of displays (usually very large displays in stadiums) that use a delta-nabla configuration. (Named for the Greek delta letter "Δ" and the Hebrew nabla letter "∇" because the pixels were alternating triangles with the point going up, then down, then up, then down.) One example is the Philips Vidiwall.
user1118321
CC BY-SA 3.0
2015-08-05T17:54:03.760Z
To come up with this question, you must have had some advantages of hexagonal arrangement of pixels. Can you add those to the question?
nitishch
CC BY-SA 3.0
2015-08-05T19:57:54.847Z
@nitishch it was only the one advantage I had in mind. Does my edit get it across better?
trichoplax is on Codidact now
CC BY-SA 3.0
2015-08-06T14:16:31.293Z
The DSP stack exchange (signal processing) probably would have a more formal answer for you on this BTW.
Alan Wolfe
<pixels><memory>
Could a hexagonal pixel array store an image more efficiently?
trichoplax is on Codidact now
# Could a hexagonal pixel array store an image more efficiently?

(Asked by: username_0 on 2015-08-05)

Most computer monitors and televisions have a rectangular array of pixels arranged on a square (or nearly square) lattice. Would a hexagonal lattice give better image quality for the same number of pixels? In other words, would the same amount of memory allow storage of more detail?

I have an intuitive feeling that (at least slightly) more detail should be possible from the same number of pixels with a hexagonal lattice because (for a fixed area image) the average distance to the nearest pixel centre will be lower than with a square lattice. I'd like to see the difference defined more concretely.

---

Even if the answer is "yes", I don't expect monitor manufacturers to suddenly start making hexagonally arranged pixels. However, I ask the question because I wonder whether there would be anything to be gained from storing images as hexagonal lattices of pixels, even if they are translated to square lattices of pixels for display purposes.

**Tags:** pixels, memory

> **Comments:**
> **username_3**: To come up with this question, you must have had some advantages of hexagonal arrangement of pixels. Can you add those to the question?  
> **username_0**: @username_3 it was only the one advantage I had in mind. Does my edit get it across better?  
> **username_4**: The DSP stack exchange (signal processing) probably would have a more formal answer for you on this BTW.  
> **username_1**: [Related question on SuperUser.](http://superuser.com/q/1019825/215723)  
> **username_2**: FWIW, I've heard of displays (usually very large displays in stadiums) that use a delta-nabla configuration. (Named for the Greek delta letter "Δ" and the Hebrew nabla letter "∇" because the pixels were alternating triangles with the point going up, then down, then up, then down.) One example is the Philips Vidiwall.  

---

## 2 answers

### Answer by username_4 on 2015-08-05. Score: 9

Here's my take on it. A pixel is not a square, and it isn't even a rectangle. A pixel is a point (infinitely small) that has a color associated with it.

The only way I personally have ever seen pixels viewed (interpreted) by a display is to use "nearest neighbor" sampling where the pixels were on a rectangular grid, which means that the color of any given space on a display is the color of the pixel that it is nearest to.

This is a fancy way of saying "pixels are rectangular and laid out on a grid", but stay with me on this :P

As a result, image formats have their pixels stored in a grid as well, with the assumption that nearest neighbor in a grid will also be used to display it. For instance, many images will have anti aliasing built into them so that they will look good when displayed on a "nearest neighbor grid".

Interactive applications (games), may use textures that are not meant to be displayed as is on nearest neighbor grids so are kind of an exception to that rule. They do this because as part of their execution, they do anti aliasing, bilinear texture sampling, etc, so that whatever picture they push out to the display will look good, when the display shows it as a nearest neighbor grid!

Now, getting closer to your question: would a hexagonal grid have any advantages?

I think that yes, it would!

First off, I think nearest neighbor would look better. I don't have any real proof of that sorry, but the hexagon more closely approximates a circle, and since it isn't a regular grid of data, i think your eye is getting a better distribution of data. Sorry, that is a little hand wavey.

I think the big part of why it would look better though is that linear filtering would be taking information from 6 neighbors instead of 4, and would be interpolating on 3 axis instead of 2. More information from less regularly spaced samples than a grid gives you = better resulting image.

Doing cubic interpolation would also be better than cubic interpolation on a grid, so the quality scales up as you scale up the quality of your algorithm too.

As far as whether it stores data more efficiently, the fact that it can do better filtering with less data means to me that yes, it could store data more efficiently.

And i guess lastly... maybe you could use these properties to your advantage. Maybe you could have an image format stored in a lower res hexagonal format, and then before you needed to display the image at runtime, you could use sampling algorithms to convert it back to a grid.

Maybe there'd even be a good way to do this efficiently in a pixel shader, so it would use less memory at runtime too?

It's an interesting idea (:

PS - how cool would it be to have an analog display (no individual pixels, but a continuous colored surface) that looked at the pixel data you sent not as rectangles, but instead as sample points on a continuous surface. Maybe a bit out there though....

> **Comments:**
> **username_5**: You dont need to store each color plane in each pixel even, or have the planes in same configuration.  BUT you loose separable filtering  
> **username_4**: Good points! Separable filtering is pretty big.  I wonder if you could do 3 axis filtering for hexagons?  

---

### Answer by username_6 on 2016-03-25. Score: 3

If one examines old CRT television displays, one will observe red, green, and blue phosphor dots in a triangular lattice. Some LCD television sets had a somewhat similar arrangement; pixels were rectangular rather than square, but successive rows of pixels were staggered so that the horizontal position of a red pixel on one row would be halfway between the positions of the nearest red pixels on the row above, and would match the position of a red pixel two rows up.

When showing "analog" pictures, such arrangements will improve the visual quality of image that can be obtained with a given number of pixels. On computer displays, however, there are a lot of lines that should appear perfectly horizontal, and a lot of lines that should appear perfectly vertical. A rectangular grid can accommodate both easily. A hexagonal grid, however, can only accommodate one or the other, and the one which isn't accommodated will appear rather nastily jagged.

> **Comments:**
> **username_5**: So not good for excel :)  

---

