1 of 14

DIGITAL IMAGE PROCESSING

DIP

معالجة الصورة الرقمية

LEC (4)

PART -A

IMAGE ZOOMING & SHRINKING

د.زينب محمود عمر

1

7/9/2021

2 of 14

���IMAGE RESOLUTION

Resolution refers to the number of pixels in an image. Resolution is sometimes identified by the width and height of the image as well as the total number of pixels in the image.

For example, an image that is 2048 pixels wide and 1536 pixels high (2048 x 1536) contains (multiply) 3,145,728 pixels (or 3.1 Megapixels).

2

7/9/2021

3 of 14

Below is an illustration of how the same image might appear at different pixel resolutions, if the pixels were poorly rendered as sharp squares (normally, a smooth image reconstruction from pixels would be preferred, but for illustration of pixels, the sharp squares make the point better).

3

7/9/2021

4 of 14

4

7/9/2021

5 of 14

5

7/9/2021

6 of 14

Zooming and shrinking digital image

  • Zooming

Zooming requires two steps:

1. Creation of new pixels locations.

2. Assignment of gray levels to those locations.

6

7/9/2021

7 of 14

7

7/9/2021

8 of 14

8

7/9/2021

9 of 14

2. Bilinear interpolation�

  • Bilinear interpolation replaces each missing pixel with a weighted average of the nearest pixels on the boundary .

9

7/9/2021

10 of 14

10

7/9/2021

11 of 14

11

7/9/2021

12 of 14

  • In blurring, we simple blur an image. An image looks more sharp or more detailed if we are able to perceive all the objects and their shapes correctly in it. For example.

  • An image with a face, looks clear when we are able to identify eyes, ears, nose, lips, forehead e.t.c very clear.

  • This shape of an object is due to its edges. So in blurring, we simple reduce the edge content and makes the transition form one color to the other very smooth.

12

7/9/2021

13 of 14

IMAGE SHRINKING

13

7/9/2021

14 of 14

SOLUTION

14

7/9/2021