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

chapter 9 erossion

61 309 0
Tài liệu đã được kiểm tra trùng lặp

Đ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 đề Erosion and Dilation in Image Morphology
Trường học University of Image Processing and Computer Vision
Chuyên ngành Digital Image Processing
Thể loại Lecture Note
Năm xuất bản 2023
Thành phố Hanoi
Định dạng
Số trang 61
Dung lượng 1,81 MB

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

Nội dung

Morphology in image processing Morphology generally concerned with shape and properties of objects.. Digital Image ProcessingErosion and Dilation... Dilation and Erosionan object bounda

Trang 1

Morphology in image processing

 Morphology generally concerned with shape

and properties of objects

 Used for segmentation and feature extraction

 Segmentation = used for cleaning binary

objects.

 Two basic operations

 erosion

 dilation

Trang 2

Digital Image Processing

Erosion and Dilation

Trang 3

Dilation and Erosion

an object

boundary of an object

depends on size and shape of structuring element

Trang 4

Morphological operators are used to prepare

recognition

(specifically salt-and-pepper noise)

black pixels in a white region) Can also have

cracks, picket fence occlusions, etc.

morphological operations that can assist with these problems.

Morphology in image processing

Trang 5

Union of A and B: C=A∪B

Intersection of A and B: D=A∩B

Disjoint sets: A∩B= ∅

Complement of A: Ac = {x|x∉A}

Difference of A and B:

A-B = {x|x ∈ A, x ∉ B} = A ∩Bc

Trang 6

Structuring Elements, Hits & Fits

on pixels in the image

Hit: Any on pixel in the structuring element covers

an on pixel in the image

All morphological processing operations are based

on these simple ideas

Trang 7

Structuring Elements

Structuring elements can be any size and

make any shape

However, for simplicity we will use

rectangular structuring elements with their

origin at the middle pixel

Trang 8

Fitting & Hitting

0 1 0

1 1 1

0 1 0

Structuring Element 2

Trang 9

Fundamental Operations

processing is very like spatial filtering

every pixel in the original image to give a pixel in a new processed image

operation performed

Trang 10

Erosion of image f by structuring element s

is given by f  s

The structuring element s is positioned with

its origin at (x, y) and the new pixel value is

determined using the rule:

fits if

1 )

,

g

Trang 11

Example for Erosion

1 1

0 1

1 1

0 0

0 1

Input image

Structuring Element

x7 x6

x5 x4

x1 x3

x2 x1

Output Image

1 1

1

Trang 12

Erosion Example

Structuring Element Original Image Processed Image With Eroded Pixels

Trang 13

Erosion Example

Structuring Element

Original Image Processed Image

Trang 15

Erosion Example

A

Trang 16

Erosion Example

Trang 20

Erosion Example 2

Original image

After erosion with a disc of radius 10

After erosion with a disc of radius 20

Trang 21

Dilation of image f by structuring element s is given by f s

The structuring element s is positioned with

its origin at (x, y) and the new pixel value is

determined using the rule:

hits if

1 )

,

g

Trang 22

Example for Erosion

1 1

0 1

1 1

0 0

0 1

Input image

Structuring Element

x3 x2

x1

Output Image

1 1

1

Trang 23

Dilation Example

Structuring Element Original Image Processed Image

Trang 24

Dilation Example

Structuring Element Original Image Processed Image With Dilated Pixels

Trang 25

Dilation Example

Trang 27

Main Applications of Dilation

Trang 28

Dilation Example

Trang 29

Main Applications of Dilation

Trang 31

Main Applications of Dilation

Trang 32

Main Applications of Dilation

Trang 33

clear all;

clc

A=imread('Fill_hold.bmp'); B=im2bw(A);

Trang 34

Dilation: expands image

Erosion: shrink image

erosion+dilation = original image ?

Opening= erosion + dilation

B B

A B

A  = ( ) ⊕

Trang 35

Closing

Closing = dilation + erosion

B B

A B

A • = ( ⊕ )

Trang 36

Example of opening and closing

Trang 37

se=strel(‘square', 20);

(A) Original Image (B) Opening

(C) closing (D) Closing of B

Trang 38

(A) Original Image (B) Opening

(C) closing (D) Closing of B

se=strel('disk', 10);

Trang 39

(A) Original Image (B) Opening

(C) closing (D) Closing of B

Trang 40

closing

Trang 41

From A -> B -> C, counting the number of objects, highlight the boundary of

objets (Boundary Extraction)

Trang 42

exercises

Trang 43

The Hit-or-Miss Transformation

Trang 44

Use the hit-or-miss trnsformation to identify the location of the shape

Trang 47

Use the hit-or-miss trnsformation to identify the location of the shape

Trang 49

bwmorph(f, operation, n)

based on combinations of dilations, erosions and look up table operations

Trang 50

bwmorph(f, operation, n)

Trang 53

bwmorph(f, operation, n)

BW2 = bwmorph(BW,'remove');

figure, imshow(BW2)

Trang 54

bwmorph(f, operation, n)

Trang 55

bwmorph(f, operation, n)

Trang 56

Labeling Connected Components

• Label objects in an image

• 4-Neighbors

• 8-Neighbors

Trang 57

4 and 8 Connect

Input Image 8 – Connect 4 - Connect

Trang 58

4-Neighbors

Ngày đăng: 28/04/2014, 10:35

Xem thêm

TỪ KHÓA LIÊN QUAN