Basic Mathematical Tools Used in Digital Image P... Basic Mathematical Tools Used in Digital Image P... Basic Mathematical Tools Used in Digital Image P... Basic Mathematical Tools Used
Trang 1XỬ LÝ ẢNH TRONG CƠ ĐIỆN
Machine Vision
TRƯỜNG ĐẠI HỌC BÁCH KHOA
Giảng viên: TS Nguyễn Thành Hùn
Đơn vị : Bộ môn Cơ điện tử , Viện Cơ
Hà Nội, 2021
Trang 2Chapter 2 Digital Image Fundam
1 Image Sensing and Acquisition
2 Image Sampling and Quantization
3 Some Basic Relationships Between Pixels
4 Basic Mathematical Tools Used in Digital Image P
Trang 31 Image Sensing and Acquisi
(a) Single sensing element
(b) Line sensor
(c) Array sensor
Trang 41 Image Sensing and Acquisi
Combining a single sensing element with mechanical motion to generate a
Trang 52-1 Image Sensing and Acquisi
(a) Image acquisition using a linear sensor strip
(b) Image acquisition u
a circular sensor strip
Trang 61 Image Sensing and Acquisi
An example of digital imag (energy) source (b) A scen Projection of the scene ont Digitized image.
Trang 71 Image Sensing and Acquisi
➢ We denote images by two-dimensional functions of the form ( f x
f x y ( , ) = i x y r x ( , ) ( , y)
• i x y ( , ): the amount of source illumination incident on the scene
• r x y ( , ): the amount of illumination reflected by the objects in th
Trang 8Chapter 2 Digital Image Fundam
1 Image Sensing and Acquisition
2 Image Sampling and Quantization
3 Some Basic Relationships Between Pixels
4 Basic Mathematical Tools Used in Digital Image P
Trang 92 Image Sampling and Quantiz
➢ Digitizing the coordinate values is called sampling Digitizing t values is called quantization
(a) Continuous image (b) A scan line
showing intensity variations along line
AB in the continuous image (c)
Sampling and quantization (d) Digital
scan line (The black border in (a) is
included for clarity It is not part of the
image).
Trang 102 Image Sampling and Quantiz
(a) Continuous image projected onto a sensor array
(b) Result of image samplin and quantization
Trang 112 Image Sampling and Quantiz
(a) Image plo Image displa array (c) Ima numerical arr and 1 represe white, respec
Trang 122 Image Sampling and Quantiz
Trang 132 Image Sampling and Quantiz
Trang 142 Image Sampling and Quantiz
➢ The number of intensity levels: L
where k is an integer.
➢ The discrete levels are equally spaced and that they are integers [0, - L 1]
Trang 152 Image Sampling and Quantiz
➢ The number, , of bits required to store a digital image is b
➢ When M = N :
Number of megabytes required to store
images for various values of N and k
Trang 162 Image Sampling and Quantiz
➢ coordinate indexing or subscript indexing (x, y) vs linear indexi
Illustration of column scanning for generating linear indices Shown are several
2-D coordinates (in parentheses) and their corresponding linear indices.
Trang 172 Image Sampling and Quantiz
➢ Spatial resolution is a measure of the
smallest discernible detail in an image.
➢ Dots per unit distance is a measure of
image resolution used in the printing and
publishing industry In the U.S., this
measure usually is expressed as dots per
inch (dpi)
➢ Intensity resolution is the number of bits
used to quantize intensity.
Effects of reducing spat are at: (a) 930 dpi, (b) 3
Trang 182 Image Sampling and Quantiz
(a) 256-level image (b)-(d) Image displayed in 128, 64, and 32 intensity levels, while k size constant (e)-(h) Image displayed in 16, 8, 4, and 2 intensity levels.
Trang 192 Image Sampling and Quantiz
(a) Image with a low level of detail (b) Image with a medium level of det relatively large amount of detail.
Trang 202 Image Sampling and Quantiz
➢ Observe that isopreference curves tend
to become more vertical as the detail in
the image increases
➢ This result suggests that for images with
a large amount of detail only a few
intensity levels may be needed.
Trang 212 Image Sampling and Quantiz
Trang 222 Image Sampling and Quantiz
(a) Image reduced to 72 dpi and zoomed back to its original 930 dpi using interpolation (b) Image reduced to 72 dpi and zoomed using bilinear interp (b) but using bicubic interpolation.
Trang 23Chapter 2 Digital Image Fundam
1 Image Sensing and Acquisition
2 Image Sampling and Quantization
3 Some Basic Relationships Between Pixels
4 Basic Mathematical Tools Used in Digital Image P
Trang 243 Some Basic Relationships Betwe
Trang 253 Some Basic Relationships Betwe
➢ Let V be the set of intensity values used to define adjacency.
Trang 263 Some Basic Relationships Betwe
➢ V = {1}
(a) An arrangement of pixels (b) Pixels that are 8-adjacent (adjacency is shown by dash adjacency (d) Two regions (of 1’s) that are 8-adjacent (e) The circled point is on the bo pixels only if 8-adjacency between the region and background is used (f) The inner bou region does not form a closed path, but its outer boundary does.
Trang 273 Some Basic Relationships Betwe
Trang 283 Some Basic Relationships Betwe
Let represent a subset of pixels in an image S
➢ Two pixels p and q are said to be connected in if there exists a S them consisting entirely of pixels in S
➢ The set of pixels that are connected to in is called a p S connect S.
➢ If it only has one component, and that component is connected, connected set.
Trang 293 Some Basic Relationships Betwe
Let represent a subset of pixels in an image R
➢ We call R a region of the image if is a connected set R
➢ Two regions, R i and R j are said to be adjacent if their union fo set.
➢ Regions that are not adjacent are said to be disjoint
➢ Foreground : the union of all the disjoint regions ( K R u )
➢ Background: the complement of the set R u : (R u ) c
Trang 303 Some Basic Relationships Betwe
backg
foreground
Trang 313 Some Basic Relationships Betwe
➢ The boundary (also called the border or contour ) of a region i R
in that are adjacent to pixels in the complement of R R
intensity discontinu closed paths
Trang 323 Some Basic Relationships Betwe
➢ For pixels p, q , and , with coordinates ( s x, y ), ( u, v ), and ( , ), w z distance function or metric if:
Trang 333 Some Basic Relationships Betwe
➢ The Euclidean distance between p and q is defined as:
The distance D 4, ( city-block distance ) The distance D 8,
Trang 34Chapter 2 Digital Image Fundam
1 Image Sensing and Acquisition
2 Image Sampling and Quantization
3 Some Basic Relationships Between Pixels
4 Basic Mathematical Tools Used in Digital Image P
Trang 354 Basic Mathematical Tools Used in Digital
➢ An elementwise operation involving one or more images is carr by-pixel basis.
➢ The elementwise product of these two images is
➢ The matrix product of the images
Trang 364 Basic Mathematical Tools Used in Digital
➢ Consider a general operator, H, that produces an output image, given input image, ( f x, y):
➢ H is said to be a linear operator if
➢ An operator that fails to satisfy above equation is said to be non
Trang 374 Basic Mathematical Tools Used in Digital
➢ Arithmetic operations between two images ( f x, y ) and ( , ) g x y
Trang 384 Basic Mathematical Tools Used in Digital
❖ Arithmetic Operations Using image addition (averaging) for noise
Trang 394 Basic Mathematical Tools Used in Digital
Trang 404 Basic Mathematical Tools Used in Digital
Trang 414 Basic Mathematical Tools Used in Digital
Trang 424 Basic Mathematical Tools Used in Digital
Trang 434 Basic Mathematical Tools Used in Digital
Trang 444 Basic Mathematical Tools Used in Digital
Trang 454 Basic Mathematical Tools Used in Digital
(a) An 8-bit image (b) Intensity transformation function used to obtain the digital equiv negative of an 8-bit image The arrows show transformation of an arbitrary input intensi corresponding output value (c) Negative of (a), obtained using the transformation functi
Trang 464 Basic Mathematical Tools Used in Digital
Local averaging using neig procedure is illustrated in neighborhood (c) An aorti using Eq (2) with m = m
790 x 686 pixels.
Trang 474 Basic Mathematical Tools Used in Digital
Trang 484 Basic Mathematical Tools Used in Digital
Trang 494 Basic Mathematical Tools Used in Digital
Trang 504 Basic Mathematical Tools Used in Digital
(a) A 541 x Image rota interpolatio Image rota interpolatio bicubic int sections (e numbers sh
Trang 514 Basic Mathematical Tools Used in Digital
(a) A digital image (b counterclockwise dire rotation) (c) Rotated area as the original im accommodate the ent
Trang 524 Basic Mathematical Tools Used in Digital
Image registration (a) Ref (geometrically distorted im points are shown as small corners (c) Registered (ou
in the border) (d) Differen showing more registration
Trang 534 Basic Mathematical Tools Used in Digital
Forming a vector from corresponding pixel values in three RGB component
Trang 544 Basic Mathematical Tools Used in Digital
➢ 2-D linear transforms
➢ Inverse transform
Trang 554 Basic Mathematical Tools Used in Digital
General approach for working in the linear transform dom
Trang 564 Basic Mathematical Tools Used in Digital
(a) Imag interferen transform caused b were enl Mask use (d) Resu modified