11
$\begingroup$

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.

$\endgroup$
  • 1
    $\begingroup$ To come up with this question, you must have had some advantages of hexagonal arrangement of pixels. Can you add those to the question? $\endgroup$ – nitishch Aug 5 '15 at 17:54
  • $\begingroup$ @nitishch it was only the one advantage I had in mind. Does my edit get it across better? $\endgroup$ – trichoplax Aug 5 '15 at 19:57
  • $\begingroup$ The DSP stack exchange (signal processing) probably would have a more formal answer for you on this BTW. $\endgroup$ – Alan Wolfe Aug 6 '15 at 14:16
  • 1
    $\begingroup$ Related question on SuperUser. $\endgroup$ – Martin Ender Jan 1 '16 at 19:27
  • 1
    $\begingroup$ 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. $\endgroup$ – user1118321 Mar 28 '16 at 5:07
8
$\begingroup$

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....

$\endgroup$
  • 2
    $\begingroup$ You dont need to store each color plane in each pixel even, or have the planes in same configuration. BUT you loose separable filtering $\endgroup$ – joojaa Aug 5 '15 at 19:07
  • $\begingroup$ Good points! Separable filtering is pretty big. I wonder if you could do 3 axis filtering for hexagons? $\endgroup$ – Alan Wolfe Aug 5 '15 at 19:16
4
$\begingroup$

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.

$\endgroup$
  • $\begingroup$ So not good for excel :) $\endgroup$ – joojaa Mar 26 '16 at 5:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.