Digital Image Processing Basics
Digital Image Processing Basics
Infographic
I- Introduction
When creating various computer productions (document, workbook, presentation, website
Web,...), one is led to use digital images, even to modify them according to one's needs.
In this course, we explore some theoretical aspects related to digital images, before
move on to practical applications.
II- Presentation
Infographic
Infographics is the field of creating and processing digital images using
techniques and computer software.
2. Multimedia:
The term multimedia is made up of multi- and media. A set of techniques and products.
which present information in a combined form of text, sound, images, animations and
videos. A multimedia presentation, therefore, can include photos, videos,
sounds and texts.
3. The digitization
. Digitization involves creating documents from a real [Link]
devicescomputer sciencewill be able to process.
. Digitizing an image means giving it an electronic representation based on the real object.
which serves as its support (paper, film, slide, negative, but also 3D object).
The advantages of a vector image: the files that make it up are small, it is possible to
move, resize or change the color of a line without losing graphic quality.
1
ISSHM Infographic
The disadvantages: a vector image can only represent simple shapes. It
it is therefore not usable for photography, especially to obtain realistic photos.
Note:
If we greatly enlarge the image above, we can obtain the image on the side where each small square
represents a pixel.
2
ISSHM Infographic
Formula: Calculation of the total number of pixels in an image: Total number of pixels = columns
xlignes.
Example: 10x11=110 pixels in total for the image above.
5.2 The resolution
It is the number of points or pixels per unit area (in inches), expressed in points per inch.
(PPP or PPI or DPI: These three units are equivalent). One inch measures 2.54 cm. This parameter
is often defined during image acquisition (camera settings, resolution of the
scanner software...) or later in image processing software.
The resolution thus allows establishing the relationship between the pixel definition of an image and the
real dimension of its representation on a physical medium (screen display, printing
paper...)
Note:
. 1 inch = 2.54 cm
. The size of a screen (in inches) is calculated based on its diagonal.
. Resolution defines the sharpness and quality of an image. The higher the resolution (that is to say...
the more pixels there are in a length of 1 inch), the more accurate your image is in the
details.
. Displaying a digital image on the screen matches a pixel of the image to a pixel.
de l'écran. Si l'image est plus grande que cette correspondance on n'en voit qu'une partie à
the screen and it is necessary to use the elevators to view it.
. Images can be displayed in full by adjusting a zoom factor,
but their actual size is not changed!
3
ISSHM Infographic
Consequence:
Calculate the resolution from the definition and the dimension
Dimension of a line (in width): represents the number of inches in width
Column dimension (in height): represents the number of inches in height
Resolution = definition (width) / dimension (width)
For example: Let there be an image that is 300 pixels wide measuring 2 inches on each side:
Resolution = 300 / 2 = 150dpi
Conclusion:
Exercise:
What would be the pixel definition of a sheet that is 8.5 inches wide and 11 inches tall?
scanned at 300dpi?
Response:
300 x 8.5 = 2550 pixels, 300 x 11 = 3300 pixels. The image resolution would therefore be 2550 x
3300 pixels.
1 bit = 2 colors black A grayscale image 4 bits = 16 colors 24 bits = 16.8 * 106
and white gray is coded with 8 colors
bits
(fig. 1) (fig.2) (fig.3) (fig.4)
A color image, with TSL encoding (Hue, Saturation, Luminance). This model consists of
decompose the color according to three parameters:
the hue: dominant parameter, defines the color (purple or orange T-shirt),
saturation: measures the intensity or purity of a color, that is to say the percentage of white
content in color (new or faded T-shirt). The pink is a half-saturated red.
the brightness: luminance, light intensity of the color, an increase in the luminance of a
color tends towards white and reciprocally tends towards black (light or dark color)
(T-shirt in the sun or in the shade).
Here is a graphical representation of the TSL model, in which hue is represented by a circle.
chromaticity and luminance and saturation by two axes:
5
ISSHM Infographic
Note:
The more colors the image has, the more accurate the reproduction is and its quality is great.
- the RGB system used by screens and camera sensors, the CMYK system used in
printing or the TSL system used in graphics.
RGB Coding
A 'color' pixel is then coded with 3 bytes and we then have the possibility to obtain 224possibilities of
colors amounting to around 16 million different colors.
The principle consists of mixing the 3 colors: red, green, and blue (noted RGB in English). With the help of
From these 3 colors, we obtain a whole palette of shades ranging from black to white. Each color is
associate an octet (thus 256 levels of brightness) of each of the primary colors.
Red Green Blue Color
0 0 0 Black
0 0 1 Shade of black
255 0 0 Red
0 255 0 Green
0 0 255 Blue
128 128 128 Gray
255 255 255 Blanc
6
ISSHM Infographic
The number of bytes that encode a pixel is called the image depth.
The layers
The layers are similar to stacked acetate sheets. Their transparent areas allow
to visualize the layers located below. You move a layer to position its content
as you would slide an acetate sheet into a stack. You can also modify
the opacity of a layer to make its content partially transparent.
Using layers allows you to work on distinct elements of an image while
keeping the possibility to revert to each of the settings.