People Innovation Excellence
 
Feature Image

Image Enhancement Using Spatial Domain Filtering

Spatial term, refers to pixels which are the smallest element of an im-  age. All the changes directly execute these values. Spatial domain could be written in this notation:

In spatial domain, the simplest form of T is of size 1×1. In this case, g(x,y) depends only the value of f(x,y), and T becomes a gray level. The larger neighbourhoods can also exist. They are known as masks which may vary in the implementation such as filters, kernels, templates or windows [1].

As it is described, grayscale image is used as the input to the algorithm. RGB (Red Green Blue) images are acquired in the acquisition task. These images need to be converted into grayscale images. The purpose of con- verting input image to grayscale aim at minimizing inter-image variances induced by  different subject colors.  If algorithm is optimized to the spe-  cific color, it will be very difficult to work with other colors. Therefore by converting RGB images into grayscale images, it is possible to have  one standard format input. The formula of converting RGB to grayscale image as follows:

Figure 1: Grayscale process

Histogram is also introduced in this spatial domain. Histogram can be described as the image statistics with the gray levels. This calculated statis- tics value, according to the intensity of gray levels that may occurred in specific (x,y) coordinates, can be a useful information in order to do en- hancement.

In this work, histogram equalization is applied in order to adjust the contrast of grayscale image. Uneven illumination may occurred in the ac- quisition task. Therefore by calculating histogram equalization, the image  can be enhanced further. The steps which are necessary in order accomplish this task:

  1. Calculate probability mass function (PMF)
    PMF is a frequency of each corresponding pixels.
  2. Calculate cumulative distributive function (CDF)
    CDF is a function that calculates the cumulative sum of all the values that are calculated by PMF.

  3. Calculate CDF according to gray levels

Figure 2: Histograms of each corresponding various input images

Bibliography 

[1] Rafael C. Gonzalez; Richard E. Woods. Digital image processing third edition. Pearson education international, 2008.

 


Published at :
Written By
Hanry Ham, S.Kom.,M.Eng
Subject Content Coordinator – Software Development | School of Computer Science

Periksa Browser Anda

Check Your Browser

Situs ini tidak lagi mendukung penggunaan browser dengan teknologi tertinggal.

Apabila Anda melihat pesan ini, berarti Anda masih menggunakan browser Internet Explorer seri 8 / 7 / 6 / ...

Sebagai informasi, browser yang anda gunakan ini tidaklah aman dan tidak dapat menampilkan teknologi CSS terakhir yang dapat membuat sebuah situs tampil lebih baik. Bahkan Microsoft sebagai pembuatnya, telah merekomendasikan agar menggunakan browser yang lebih modern.

Untuk tampilan yang lebih baik, gunakan salah satu browser berikut. Download dan Install, seluruhnya gratis untuk digunakan.

We're Moving Forward.

This Site Is No Longer Supporting Out-of Date Browser.

If you are viewing this message, it means that you are currently using Internet Explorer 8 / 7 / 6 / below to access this site. FYI, it is unsafe and unable to render the latest CSS improvements. Even Microsoft, its creator, wants you to install more modern browser.

Best viewed with one of these browser instead. It is totally free.

  1. Google Chrome
  2. Mozilla Firefox
  3. Opera
  4. Internet Explorer 9
Close