• Tidak ada hasil yang ditemukan

Reduksi Noise-jilid-6 - Repository UNIKOM

N/A
N/A
Protected

Academic year: 2019

Membagikan "Reduksi Noise-jilid-6 - Repository UNIKOM"

Copied!
45
0
0

Teks penuh

(1)

REDUKSI NOISE

KK-Komputasi dan Kecerdasan Buatan

Teknik Komputer

Universitas Komputer Indonesia-UNIKOM

John Adler

5/11/19 1

(2)
(3)

Procedures adopted

Pre-processing:

When getting an image containing human faces,

it is always better to do some pre-processing such

like removing the noisy backgrounds,

clipping to get a proper facial image,

(4)
(5)

Features finding:

4 major feature points, namely the two

eyes, and the two endpoints of the

(6)
(7)
(8)
(9)

Median filtering

Mask

= Median value of

the appropriate 9 pixels

in the original image

(10)

Median filtering images

Digital chest

radiograph with

(11)

Reduksi Noise

(12)
(13)

Filter Median

(14)
(15)

Filter Max & Min Max

(16)

DITHERING

KK-Komputasi dan Kecerdasan Buatan

Teknik Komputer

Universitas Komputer Indonesia-UNIKOM

(17)

17

Dithering Methods

Dithering

There are three dithering methods that are commonly

used in image processing programs:

noisepattern

(18)

Dithering Methods - Noise

Dithering

Noise dithering

(also called

random dithering

)

Eliminates the patchiness and high black/white contrast by

adding high frequency noise—speckles of black and white that, when combined by the eye, look like shades of gray

Figure 3.3, shows thesholding which results in large patches of

black and white

(19)

19

Dithering Methods - Pattern

Dithering

Pattern dithering

(also called

ordered dithering

or the

Bayer method

) (a)

Uses a regular pattern of dots to simulate colors

An m × m array of values between 1 and m2 is applied to each m × m block of pixels in the image file called a mask

The numbers in the mask will determine the appearance of the

pattern in the dithered image file, e.g., 1 7 4

5 8 3 6 2 9

Each pixel value

p

is scaled to a value

p′

between

(20)

Dithering Methods - Pattern

Dithering

Pattern dithering

(also called

ordered dithering

or the

Bayer method

) (b)

In this case, we can divide all the pixels by 25.6 and drop the

remainder

Assuming that the values initially are between 0 and 255, this

will result in normalized values between 0 and 9

Then the normalized pixel value is compared to the value in the

corresponding position in the mask

If p′ is less than that value, the pixel is given the value 0, or

(21)

21

Dithering Methods - Pattern

Dithering

Pattern dithering

(also called

ordered dithering

or the

Bayer method

) (c)

Pattern dithering is easy and fast, but it can result in a

crosshatched effect, see Figure 3.5

(22)

Dithering Methods – Error Diffusion (1)

Dithering

Error diffusion dithering

(also called the

Floyd–

Steinberg algorithm

)

Is a method that disperses the error, or difference between a

pixel’s original value and the color (or grayscale) value available

For each pixel, the difference between the original color and

the color available is calculated

Then this error is divided up and distributed to neighboring

pixels that have not yet been visited

After all pixels have been visited, the color used for each pixel

(23)

23

Dithering Methods – Error Diffusion (2)

Dithering

Error diffusion dithering

(also called the

Floyd–

Steinberg algorithm

)

The results of error diffusion dithering method are shown in

Figure 3.6

(24)

Dithering

Compensates for lack of color resolution

Eye does spatial averaging

Black/white dithering to achieve gray scale

Each pixel is black or white

(25)

Dithering

(26)

Dithering

Dithering takes advantage of the human eye's tendency to "mix"

two colors in close proximity to one another.

original

no dithering

with dithering

(27)

Ordered Dithering

How do we select a good set of patterns?

Regular patterns create some artifacts

Example of good 3x3 dithering matrix

6 8 4 1 0 3 5 2 7

(28)

Floyd-Steinberg Error Diffusion

Diffuse the quantization error of a pixel to its neighboring pixels Scan in raster order

At each pixel, draw least error output value

Add the error fractions into adjacent, unwritten pixels

If a number of pixels have been rounded downwards, it becomes

more likely that the next pixel is rounded upwards

(29)
(30)

Floyd-Steinberg Error Diffusion

Enhances edges

(31)

Color Dithering

Example: 8 bit framebuffer

Set color map by dividing 8 bits into 3,3,2 for RGBBlue is deemphasized because we see it less well

Dither RGB separately

Works well with Floyd-Steinberg

(32)

SPATIAL

FILTERING

KK-Komputasi dan Kecerdasan Buatan

Teknik Komputer

Universitas Komputer Indonesia-UNIKOM

(33)

33

Convolution – Gaussian Blur (1)

Spatial Filtering

The mask shown in Figure 3.25 takes an average of the

pixels in a 3 × 3 neighborhood

An alternative for smoothing is to use a

Gaussian blur

,

where the coefficients in the convolution mask get smaller as

you move away from the center of the mask

(34)

Convolution – Gaussian Blur (2)

Spatial Filtering

It is called a Gaussian blur because the mask values both

the horizontal and vertical directions vary in the shape of a

Gaussian bell curve (see Figure 3.26)

These values result in a weighted average of neighboring

pixels

(35)

Example: Noise

Reduction

(36)
(37)
(38)
(39)
(40)

Some common types are:

Neighborhood-averaging filters

Median filters

(41)

Neighborhood-averaging filters

These replace the value of each pixel, by a

weighted-average of the pixels in some

neighborhood around it, i.e. a weighted sum

of the weights are non-negative. If all the

(42)

Median filters

This replaces each pixel value by the median

of its neighbors, i.e. the value such that 50%

of the values in the neighborhood are above,

and 50% are below. This can be difficult and

costly to implement due to the need for

(43)

Mode filters

Each pixel value is replaced by its most

common neighbor. This is a particularly useful

filter for

classification

procedures where each

pixel corresponds to an object which must be

placed into a class; in remote sensing, for

(44)

Referensi

Erkki Rämö, Digital Media, “Image

Processing”, Principal Lecturer, Metropolia

University of Applied Sciences.

Richard Alan Peters II,

EECE/CS 253 Image

Processing, Lecture Note : Reduction of

Uncorrelated Noise,

Department of Electrical

Engineering and Computer Science, Fall

(45)

TERIMA KASIH

Gambar

Figure 3.4 Noise
Figure 3.5 Pattern dithering
Figure 3.6 Error diffusion dithering

Referensi

Dokumen terkait

Dalam staratifikasi sosial yang ada dalam masyarakat, bahwa seseorang dalam masyarakat dapat memiliki beberapa kedudukan sekaligus, akan tetapi biasanya salah satu kedudukan itu

Web ini digunakan untuk calon anggota baru yang memiliki kesulitan dalam pendaftaran sehingga mempermudah calon anggota baru untuk mendaftar dengan lebih cepat dan efisien.. Web

menjalankan perusahaan modern, suatu tugas seringkali dipersulit oleh ketidakpastian dan kurangnya data, manajer tidak mampu memaksimumkan laba tetapi hanya dapat

Undang-Undang Nomor 32 Tahun 2009 tentang Perlindungan dan Pengelolaan Lingkungan Hidup mewajibkan pemerin- tah dan pemerintah daerah untuk membuat kajian lingkungan

mitochondrial cytochrome oxidase I (mtCOI) gene and development of a species-specific marker for onion thrips, Thrips tabaci. Lindeman, and melon

Setelah dilakukan scanning koordinasi rele jarak pada penghanatar saluran transmisi 150 kV Gardu Induk Bandung Selatan ke GI didepannya, untuk koordinasi GI

Dari hasil pengujian yang dilakukan secara parsial dapat disimpulkan bahwa variabel pengendalian intern, sistem akuntansi manajemen dan kapasitas sumber daya manusia

Kemungkinan pembentukan SKPD baru adalah dalam bentuk “ sesuai pasal 45 pada PP41/2007 yaitu pembentukan lembaga lain untuk melaksanakan tugas dan fungsi sebagai perangkat daerah