1. Trang chủ
  2. » Giáo án - Bài giảng

Xử lý ảnh trong cơ điện tử machine vision chapter 5 morphological image processing

33 6 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Morphological Image Processing
Tác giả Rafael C. Gonzalez, Richard E. Woods
Người hướng dẫn TS. Nguyễn Thành Hùng
Trường học Trường Đại Học Bách Khoa Hà Nội
Chuyên ngành Cơ Điện Tử
Thể loại Thesis
Năm xuất bản 2021
Thành phố Hà Nội
Định dạng
Số trang 33
Dung lượng 1,71 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

➢ In image processing, we use morphology with two types of sets of pixels: objects and structuring elements SE’s... Erosion and Dilation❖Erosion ➢ For image: I is a rectangular array o

Trang 1

XỬ LÝ ẢNH TRONG CƠ ĐIỆN TỬ

Machine Vision

TRƯỜNG ĐẠI HỌC BÁCH KHOA HÀ NỘI

Giảng viên: TS Nguyễn Thành Hùng Đơn vị: Bộ môn Cơ điện tử, Viện Cơ khí

Hà Nội, 2021

Trang 2

Chapter 5 Morphological Image Processing

1 Preliminaries

2 Erosion and Dilation

3 Opening and Closing

4 Some Basic Morphological Algorithms

Trang 3

1 Preliminaries

➢ Morphological operations are defined in terms of sets.

➢ In image processing, we use morphology with two types of sets of pixels: objects and structuring

elements (SE’s).

Trang 4

1 Preliminaries

❖Reflection

Structuring elements and their reflections about the origin (the x’s are don’t care elements, and

Trang 5

1 Preliminaries

❖Translation

(a) A binary image containing one object (set), A (b) A structuring element, B

(c) Image resulting from a morphological operation

Trang 6

Chapter 5 Morphological Image Processing

1 Preliminaries

2 Erosion and Dilation

3 Opening and Closing

4 Some Basic Morphological Algorithms

Trang 7

2 Erosion and Dilation

❖Erosion

➢ For image:

I is a rectangular array of foreground and background pixels

Trang 8

2 Erosion and Dilation

❖Erosion

(a) Image I, consisting of

a set (object) A, and

boundary of A, shown

for reference

Trang 9

2 Erosion and Dilation

❖Erosion

➢ Example

Using erosion to remove image components (a) A binary image of a wire-bond mask in which foreground pixels are shown in white (b)–(d) Image eroded using square

structuring elements of sizes and elements, respectively, all valued 1

Trang 10

2 Erosion and Dilation

❖Dilation

(a) Image I, composed of set (object) A and

background (b) Square SE (the dot is the

origin) (c) Dilation of A by B (shown shaded) (d) Elongated SE (e) Dilation of A by this

element The dotted line in (c) and (e) is the

boundary of A, shown for reference.

Trang 11

2 Erosion and Dilation

❖Dilation

➢ Example

(a) Low-resolution text showing broken characters (see magnified view) (b) Structuring element

(c) Dilation of (a) by (b) Broken segments were joined

Trang 12

3 Opening and Closing

❖Erosion vs Dilation

Dilation Erosion

Trang 13

Chapter 5 Morphological Image Processing

1 Preliminaries

2 Erosion and Dilation

3 Opening and Closing

4 Some Basic Morphological Algorithms

Trang 14

3 Opening and Closing

❖Opening

❖Closing

Trang 15

3 Opening and Closing

(a) Image I, composed of set (object) A and background (b) Structuring element, B (c) Translations

of B while being contained in A (A is shown dark for clarity.) (d) Opening of A by B.

Trang 16

3 Opening and Closing

(a) Image I, composed of set (object) A, and background (b) Structuring element B (c) Translations

Trang 17

3 Opening and Closing

❖Morphological opening and closing

Trang 18

3 Opening and Closing

❖Using opening and closing for morphological filtering

(a) Noisy image (b) Structuring element (c) Eroded image (d) Dilation of the

erosion (opening of A) (e) Dilation of the

opening (f) Closing of the opening

Trang 19

3 Opening and Closing

❖Using opening and closing for morphological filtering

Trang 20

Chapter 5 Morphological Image Processing

1 Preliminaries

2 Erosion and Dilation

3 Opening and Closing

4 Some Basic Morphological Algorithms

Trang 21

4 Some Basic Morphological Algorithms

❖Boundary Extraction

(a) Set, A, of foreground pixels (b) Structuring element (c) A eroded by B (d) Boundary of A.

Trang 22

4 Some Basic Morphological Algorithms

❖Boundary Extraction

Trang 23

4 Some Basic Morphological Algorithms

❖Hole Filling

Hole filling (a) Set A (shown shaded) contained in image I (b) Complement

of I (c) Structuring element B Only

the foreground elements are used in computations (d) Initial point inside hole, set to 1 (e)–(h) Various steps of

Eq (9-19) (i) Final result [union of (a) and (h)]

Trang 24

4 Some Basic Morphological Algorithms

❖Hole Filling

Trang 25

4 Some Basic Morphological Algorithms

❖Extraction of Connected Components

(a) Structuring element (b) Image containing a set with one connected component (c) Initial array containing

a 1 in the region of the connected component (d)–(g) Various steps in the iteration of Eq (9-20)

Trang 26

4 Some Basic Morphological Algorithms

❖Extraction of Connected Components

(a) X-ray image of a chicken filet with bone fragments (b) Thresholded image (shown as the negative for clarity) (c) Image eroded with a 5x5

SE of 1’s (d) Number of pixels in the connected components of (c)

Trang 27

4 Some Basic Morphological Algorithms

❖Convex Hull

(a) Structuring elements (b) Set A (c)–(f) Results of

convergence with the structuring elements shown in (a) (g) Convex hull (h) Convex hull showing the contribution of each structuring element

Trang 28

4 Some Basic Morphological Algorithms

❖Convex Hull

(a) Result of limiting growth of the convex hull algorithm (b) Straight lines connecting the boundary points show that the new set is convex also

Trang 29

4 Some Basic Morphological Algorithms

❖Thinning

Trang 30

4 Some Basic Morphological Algorithms

❖Thinning

(a) Structuring elements (b) Set A (c) Result of thinning A with B 1 (shaded) (d)

Result of thinning A1 with B2 (e)–(i) Results

of thinning with the next six SEs (There

was no change between A7 and A8 (j)–(k) Result of using the first four elements again (l) Result after convergence (m)

Result converted to m-connectivity.

Trang 31

4 Some Basic Morphological Algorithms

❖Skeletons

(a) Set A (b) Various positions of

maximum disks whose centers

partially define the skeleton of A

(c) Another maximum disk, whose center defines a different segment

of the skeleton of A (d) Complete

skeleton (dashed)

Trang 32

4 Some Basic Morphological Algorithms

❖Skeletons

Trang 33

4 Some Basic Morphological Algorithms

❖Skeletons

Implementation of Eqs (9-28)

through (9-33) The original set is

at the top left, and its morphological skeleton is at the bottom of the

fourth column The reconstructed set is at the bottom of the sixth column

Ngày đăng: 15/02/2022, 19:03

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w