This site is devoted to mathematics and its applications. Created and run by Peter Saveliev.

Gray scale function

From Mathematics Is A Science

Jump to: navigation, search
Gc pixels levels.JPG

Grayscale images are defined as follows. The level of gray of each pixel is given by a number between 0 and 255. Thus, there are the total of 256 = 28 levels of gray. These numbers together form the gray scale function of the image. An example is on the right.

Another example with larger (162x205) image is below.

A gray scale image.

The gray scale function of the image on the left.

Another angle.

The gray scale function of the image.

A gray scale image.

The image on the left is accompanied by its gray scale function. Lighter means higher values and darker means lower values.

Gray scale images are analyzed by thresholding the gray scale function.

For more see Images as functions of two variables.