Skip to content

Commit c2e5c52

Browse files
author
Florian Goth
committed
simplify PNG explanation, but keep the luminance in, since it has scientific applications.
1 parent 6409d36 commit c2e5c52

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_episodes/02-image-basics.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,9 @@ plt.imshow(three_colours,cmap=plt.cm.gray)
390390
391391
Above we have exactly the same underying data matrix, but in greyscale.
392392
Zero maps to black, 255 maps to white, and 128 maps to medium grey.
393+
Here we only have a single channel in the data and utilize a grayscale color map
394+
to represent the luminance, or intensity of the data and correspondingly
395+
this channel is referred to as the luminance channel.
393396
394397
## Even More Colours
395398
@@ -931,8 +934,7 @@ you may wish to use a compressed image format to speed up file transfer time.
931934
## PNG
932935
933936
PNG images are well suited for storing diagrams. It uses a lossless compression and is hence often used
934-
in web applications for non-photographic images. The format is able to store RGB, RGBA, plain luminance data, as well
935-
as images with a palette. Image data is stored row-wise and then, per row, a simple filter, like taking the difference of adjacent pixels, can be applied to
937+
in web applications for non-photographic images. The format is able to store RGB and plain luminance data, among others. Image data is stored row-wise and then, per row, a simple filter, like taking the difference of adjacent pixels, can be applied to
936938
increase the compressability of the data. The filtered data is then compressed in the next step and written out to the disk.
937939
938940
## TIFF

0 commit comments

Comments
 (0)