Exercises: FX X X X

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Exercises 

question 1: Please convert the analogue signal  f ( x)  2 x 2  x  1.5, ( x  [0, 4]) , to a 


digital  signal.  The  sampling  interval  is  0.5,  and  quantize  each  discrete  value  by 
rounding it. 
 
question 2: If an image is of the size 8 mm in height, the focal length of the camera 
used  to  capture  the  image  is  25mm.  The  object  is  0.05m  tall,  please  work  out  the 
distance between the object and the camera. 
 
question  3:  Please  write  a  C++  function  with  viLib  to  read  in  an  JPEG  image  and 
display it on screen. 
 
question 4: Please calculate the histogram of following image 

 
 
question 5: Please write a C++ function to perform image equalization for the image 
in question 4. 
 
question 6: Please convolute following image with template T. 

              
And please write a C++ function to realize above process. 
 
question 7: Please use the left filter to perform median filtering on the right image 
(you can skip those boundary pixels). Also please write a C++ function to realize the 
process. 
 
 
question  8:  Please  enlarge  following  image  by  transformation  (1),  and  use  nearest 
neighbor method for interpolating brightness values. 
x  1.5  x '
                    (1) 
y  2.5  y '

 
 
 
 

You might also like