Flux rss

Image processing

Introduction to image processing

The set of techniques allowing a digital image to be modified with the aim of improving it or of extracting information from it, is known as digital image processing.

Histogram

A histogram is a statistical graph that allows the intensity distribution of the pixels of an image, i.e. the number of pixels for each luminous intensity, to be represented. By convention, a histogram represents the intensity level using X-coordinates going from the darkest (on the left) to lightest (on the right).

Thus, the histogram of an image with 256 levels of grey will be represented by a graph having 256 values on the X-axis and the number of image pixels on the Y-axis. Let us consider, for example, the following image made up of levels of grey:

The histogram and the palette associated with this image are, respectively, the following:

histogram

palette

The histogram reveals that there are many more light grey tones present in the image than dark grey tones.
The tone of grey that is most used is the 11th from the left.

Several histograms are necessary for colour images. For example, for an image coded in RGB there are:

  • a histogram representing the luminance distribution,
  • three histograms representing the distribution of the values of the red, blue and green components respectively.

Cumulative histogram

The cumulative histogram represents the cumulative intensity distribution of the pixels of an image, i.e. the number of pixels having at least a given luminous intensity.

Modification of the histogram

A histogram is a very useful tool to study the distribution of the components of an image but it also allows the contrast and the range of colours for over-exposed or under-exposed images to be corrected. Moreover, its modification does not deteriorate the information contained in the image but makes it more or less visible.

The modification of a histogram is usually represented on a curve (called a tonal curve) indicating the total modification of the image components with the initial values on the X-axis and the values after the modification on the Y-axis. The tonal curve corresponds to a transfer function defined by a translation table called a look up table, which is written LUT. Thus, the diagonal indicates the curve along which the initial values are equal to the end values, i.e. when no modification has taken place. The values on the left of the mean value on the x-axis represent “light” pixels while those on the right represent dark pixels.

histogram modification curve

Thus, if the histogram modification curve is located below the diagonal, the pixels will have lower values and will thus have been lightened. On the contrary, if the curve is above the diagonal, the pixels will have been darkened.

Lightening Darkening

Histogram equalization

The purpose of histogram equalization is to harmonize the image luminosity level distribution, in such a way that each of the histogram levels tend toward containing the same number of pixels. This operation aims at increasing the image nuances.

The tonal curve corresponding to the histogram equalization depends completely on the image. However most applications usually offer a tool that makes it possible to carry out this operation automatically.

Histogram stretching

Histogram stretching (also called "histogram linearization" or "dynamic range expansion") consists in distributing the pixel appearance frequencies over the entire width of the histogram. Thus, it is an operation that consists in modifying the histogram in such a way as to distribute the intensities on the scale of values available as well as possible. This amounts to extending the histogram so that the value of the lowest intensity is zero and that of the highest is the maximum value.

In this way, if the values of the histogram are very close to each other, the stretching will make it possible to provide a better distribution in order to make light pixels even lighter and dark pixels closer to black.

It is thus possible to increase the contrast of an image. For example, an image that is too dark will become more “visible”. However this does not always yield good results.

The tonal curve corresponding to the spreading out of the histogram is as follows:

histogram stretching tonal curve

Thresholding

The operation known as “simple thresholding” consists in using zero for all pixels whose level of grey is below a certain value (called the threshold) and the maximum value for all the pixels with a higher value. Thus, the result of the thresholding is a binary image containing black and white pixels; this is why the term binarization is sometimes used. Thresholding makes it possible to highlight forms or objects in an image. However the difficulty lies in the choice of the threshold to use.

The following is an image with 256 levels of grey and the result of a thresholding operation with threshold values of 125 and 200 respectively:

The tonal curve of the thresholding operation is the following:

thresholding tonal curve

As opposed to “simple thresholding”, it is possible to define two threshold values, which are the lower and upper limits respectively, in order to use the maximum value for pixels having a value between these limits and to use zero for all other values:

thresholding tonal curve

Inversion (negative)

The inversion operation consists in reversing the values of the pixels relative to the average of the possible values, as its name says. The result obtained is called the negative.

The tonal curve of the video inversion operation is the following:

video inversion tonal curve

Last update on Thursday October 16, 2008 02:43:16 PM.

This document entitled « Image processing » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Results for Image processing

Computer - Laptop Computer Relegated several years ago only to business use, laptop computers now have processing and storage capabilities close to that of desktop computers, and can easily be used for high-tech multimedia purposes (DVD drive, video games, 3D-image processing,... en.kioskea.net/pc/ordinateur-portable.php3
Video and digital imaging- Video compression A non-compressed video image occupies approximately 1 MB. In order to obtain a fluid video, it is necessary to have a frequency of at least 25 or 30 images per second, which produces a data flow of approximately 30 MB/s, that is, more than 1.5 GB per... en.kioskea.net/video/compvid.php3
Video and digital imaging - Graphic filters Filtering consists in applying a transformation (called a filtre) to all or to part of a digital image by applying an operator. There are the following types of filters: Low-pass filters, which consist in attenuating image components with a high... en.kioskea.net/video/filtres.php3

Results for Image processing

Picasa InstallationPicasa Installation Picasa provide features and tools for the management, processing and sharing images. A large number of options for grading, research and documentation bar inbound to Picasa and creation tools such as, creation of... en.kioskea.net/faq/sujet-1023-picasa-installation
Background image/ Printed Watermark with Microsoft WordBackground image/ Printed Watermark with Microsoft Word Insert a background image: Insert a Printed Watermark background: You might want to customize the blank background of your Word document either to advertise your business or... en.kioskea.net/faq/sujet-316-background-image-printed-watermark-with-microsoft-word
Make an ISO imageMake an ISO image What is an ISO image? How to create an ISO image How to burn an ISO file to a CD-ROM/DVD-ROM What is an ISO image? An ISO image is created by a particular software and is the replica of an existing file system. This... en.kioskea.net/faq/sujet-231-make-an-iso-image

Results for Image processing

Monitor working Fine But no imageHello, My Monitor working Fine But no image, when i press the power button of system unit all of the process is fine, even i heard windows logon sound, but still there is no image. i tried to unplug all of pluged hardwares on the mother board even the... en.kioskea.net/forum/affich-37518-monitor-working-fine-but-no-image
Emaching desktop that quits during bootHello, I have an emachine desktop that starts boot up then I hear a click and the process just halts. I thought it was the hard drive and maybe it is. I reinstalled the original ghosted image. Initially it quit in a similar fashion. The next time it... en.kioskea.net/forum/affich-43146-emaching-desktop-that-quits-during-boot
Picasa, Inability To Recognize New Images! (Solved)Hello, ..Is there actually a way to make Picasa re-scan for new images each time it is run, or while it's running? Thanks to kioskea's community, always here to help anyone who is in trouble!! en.kioskea.net/forum/affich-1081-picasa-inability-to-recognize-new-images

Results for Image processing

Download LiveProject Free Project ViewerLiveProject is an application of visualization of file mpp free. LiveProject introduces no degradation of the file mpp during exportation in format Excel or html. With LiveProject, you will be able to print your own documents. The use of LiveProject... en.kioskea.net/telecharger/telecharger-860-liveproject-free-project-viewer
Download FastStone Image Viewer 3.5FastStone Image Viewer is a fast, stable, user-friendly image browser, converter and editor. It has a nice array of features that include image viewing, management, comparison, red-eye removal, emailing, resizing, cropping and color adjustments. Its... en.kioskea.net/telecharger/telecharger-44-faststone-image-viewer-3-5
Download Process ExplorerThe Process Explorer display consists of two sub-windows. The top window always shows a list of the currently active processes, including the names of their owning accounts, whereas the information displayed in the bottom window depends on the mode... en.kioskea.net/telecharger/telecharger-286-process-explorer

Results for Image processing

Video and digital imaging - The YUV format The YUV standard (also called CCIR 601), known before as YCrCb (Y Cr Cb), is a colour representation model dedicated to analogue video. It is based on a video transmission mode with separate components using three different cables to carry... en.kioskea.net/video/yuv-ycrcb.php3
Processes - imapi - imapi.exe imapi.exe (imapi stands for Image Mastering Applications Programming) is a Windows NT/2000/XP generic process used for burning CDs with the IMAPI (Image Mastering Applications Programming) interface. The file that corresponds to this process is... en.kioskea.net/processus/imapi-exe.php3
Processes - Introduction To make it more versatile, Microsoft Windows is structured around services (processes) which run in the background. The list of processes currently running may be viewed by pressing CTRL+ALT+DEL simultaneously, then clicking on the Processes tab. The... en.kioskea.net/processus/processus.php3