Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
(EOD).Software topics.pdf
Скачиваний:
18
Добавлен:
23.08.2013
Размер:
1.55 Mб
Скачать

page 164

14.7.1 Thresholding

• Thresholding basically sets a transition value. If a pixel is above the threshold, it is switched fully on, if it is below, it is turned fully off.

Original Image

1

2

3

4

 

 

 

 

 

5

6

7

5

 

 

 

 

 

3

7

7

4

 

 

 

 

 

2

3

1

2

 

 

 

 

 

an array of pixel brightness

It can be difficult to set a good threshold value, and the results are prone to noise/imperfections in the image.

e.g. Threshold = 2

1

7

7

7

 

 

 

 

 

7

7

7

7

 

 

 

 

 

7

7

7

7

 

 

 

 

 

7

7

1

7

 

 

 

 

 

e.g. Threshold = 5

1

1

1

1

 

 

 

 

7

7

7

7

 

 

 

 

1

7

7

1

 

 

 

 

1

1

1

1

 

 

 

 

14.8 EDGE DETECTION

An image (already filtered) can be checked to find a sharp edge between the foreground and background intensities.

Let’s assume that the image below has been prefiltered into foreground (1) and background (0). An edge detection step is then performed.

Соседние файлы в предмете Электротехника