<< Chapter < Page Chapter >> Page >

You may have noticed when you loaded ycbcr.mat into Matlab that you also loaded a 5 × 5 matrix, h . This is a 5 × 5 Gaussian filter with σ 2 = 2 . 0 . (See the first week of the experiment for more details on this type offilter.) Alter the ycbcr array by filtering only the luminance component, ycbcr(:,:,1) , using the Gaussian filter (use the filter2 function). Convert the result to R G B , and display it using image . Now alter ycbcr by filtering both chrominance components, ycbcr(:,:,2) and ycbcr(:,:,3) , using the Gaussian filter. Convert this result to R G B , and display it using image .

Use subplot(3,1,n) to place the original and two filtered versions of the ycbcr image in the same figure. Place a title on each of the images, and print the figure (in color).Do you see a significant difference between the filtered versions and the original image?This is the reason that Y C b C r is often used for digital video. Since we are not very sensitive to corruption of the chrominance components, wecan afford to lose some information in the encoding process.

Inlab report

  1. Submit the figure containing the components of girl.tif .
  2. Submit the figure containing the components of ycbcr .
  3. Submit your code for the transformation from Y C b C r to R G B .
  4. Submit the figure containing the original and filtered versions of ycbcr . Comment on the result of filtering the luminance and chrominance components of this image. Based on this,what conclusion can you draw about the human visual system?

Halftoning

In this section, we will cover a useful image processing techniquecalled halftoning . The process of halftoning is required in manypresent day electronic applications such as facsimile (FAX), electronic scanning/copying, laser printing, and low bandwidth remote sensing.

Binary images

As was discussed in the first week of this lab, an 8-bitmonochrome image allows 256 distinct gray levels. Such images can be displayedon a computer monitor if the hardware supports the required number intensity levels.However, some output devices print or display images with much fewer gray levels.In the extreme case, the gray scale images must be converted to binary images, where pixels can only be black or white.

The simplest way of converting to a binary image is based on thresholding , i.e. two-level (one-bit) quantization. Let f ( i , j ) be a gray scale image, and b ( i , j ) be the corresponding binary image based on thresholding.For a given threshold T , the binary image is computed as the following:

b ( i , j ) = 255 if f ( i , j ) > T 0 else
(1) Original gray scale image. (2) Binary image produced by simple fixed thresholding.

[link] shows an example of conversion to a binary image via thresholding, using T = 80 .

It can be seen in [link] that the binary image is not “shaded” properly–an artifact known as false contouring . False contouring occurs when quantizing at low bit rates (one bit in this case)because the quantization error is dependent upon the input signal. If one reduces this dependence,the visual quality of the binary image is usually enhanced.

One method of reducing the signal dependence on the quantization error is to add uniformly distributed whitenoise to the input image prior to quantization. To each pixel of the gray scale image f ( i , j ) , a white random number n in the range [ - A , A ] is added, and then the resulting image is quantized by a one-bit quantizer, as in [link] . The result of this method is illustrated in [link] , where the additive noise is uniform over [ - 40 , 40 ] . Notice that even though the resulting binary image is somewhat noisy,the false contouring has been significantly reduced.

Questions & Answers

what is biology
Hajah Reply
the study of living organisms and their interactions with one another and their environments
AI-Robot
what is biology
Victoria Reply
HOW CAN MAN ORGAN FUNCTION
Alfred Reply
the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
Joseph Reply
what is biology
Yousuf Reply
the study of living organisms and their interactions with one another and their environment.
Wine
discuss the biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles in an essay form
Joseph Reply
what is the blood cells
Shaker Reply
list any five characteristics of the blood cells
Shaker
lack electricity and its more savely than electronic microscope because its naturally by using of light
Abdullahi Reply
advantage of electronic microscope is easily and clearly while disadvantage is dangerous because its electronic. advantage of light microscope is savely and naturally by sun while disadvantage is not easily,means its not sharp and not clear
Abdullahi
cell theory state that every organisms composed of one or more cell,cell is the basic unit of life
Abdullahi
is like gone fail us
DENG
cells is the basic structure and functions of all living things
Ramadan
What is classification
ISCONT Reply
is organisms that are similar into groups called tara
Yamosa
in what situation (s) would be the use of a scanning electron microscope be ideal and why?
Kenna Reply
A scanning electron microscope (SEM) is ideal for situations requiring high-resolution imaging of surfaces. It is commonly used in materials science, biology, and geology to examine the topography and composition of samples at a nanoscale level. SEM is particularly useful for studying fine details,
Hilary
cell is the building block of life.
Condoleezza Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Purdue digital signal processing labs (ece 438). OpenStax CNX. Sep 14, 2009 Download for free at http://cnx.org/content/col10593/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Purdue digital signal processing labs (ece 438)' conversation and receive update notifications?

Ask