Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Mach banding effect

created by ymelup

(idea) by ymelup (2.1 y) (print)   ?   (I like it!) 1 C! Fri Sep 29 2000 at 0:43:35

When generating computer-generated imagery, something to be very wary of. The problem is the way that the eye works. The human eye is designed to detect edges. This means that people can detect very slight differences in colour if there is an edge between the two colours. In fact, the eye emphasises sudden changes in colour. Let's illustrate with a graphic. Let's say we have an image that has alternating bands of slightly dark grey and slightly light grey. The intensity graph might look like this as we go across the bands.

Intensity ^
(higher   |
is        |
lighter   |
grey)     |  
          |-----+      +------+
          |     +------+      +-----
          |                                
          +--------------------------------
                              moving across. 

The eye, because of lateral inhibition and also because of psychological effects, picks up the sharp transition, so it actually sees:

Intesity ^
(higher  |
is       |
lighter  |    /|        |\      /|
grey     |---/ |        | \----/ |
         |     | /----\ |        | /------
         |     |/      \|        |/
	 +-----------------------------------
                                   moving across
The eye emphasizes the edges. This can lead to really horrible artifacts when rendering digital images. The solution is tricky, but usually involved jittering or dithering or some mix of the two. This is why for Hollywood movies, they actually render at 96 bits and dither down to 24 bits. It doesn't seem to make sense to start with why anyone would use 1050 colours, when the human eye can only see about 4 million until you realise this.

printable version
chaos

Lateral Inhibition dithering Floyd-Steinberg Dithering Algorithm Sensing and Perceiving
Minas Ithil
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Things you could have written:
On Climbing in Nanjing to the Terrace of Phoenixes
Why do some people enjoy being in nature?
liquor
Romantic Period Music
Frame Breaking Act
Et tu, Brute?
Martial law baby
XML
Clement Attlee
Designing a Fantasy World
May 24, 2006
paisley underground
I pray to God I can find the other sock
New Writeups
locke baron
The fall of Earth(fiction)
BookReader
Fear the Cold(dream)
Pavlovna
Kathleen MacInnes(person)
stainedglass
1(fiction)
kalen
Three "T"s(idea)
octillion369
Undead(idea)
archiewood
Ico(fiction)
Heisenberg
Why I love Everything2(log)
octillion369
Death Knight(person)
XWiz
Are you hoping for a miracle?(review)
santo
The Host(review)
LostPsion
"Shut the Fuck Up" Theaters(idea)
beatrice
You've been slowly taking me over for nearly a year, do you know that?(idea)
Berek
YouTube(thing)
shaogo
How to Pretend to Have a Job(idea)
This affordable entertainment brought to you by The Everything Development Company