German University in Cairo
Faculty of Media Engineering and Technology
Winter 2024
DMET 901 – Computer Vision
Problem Set # 9
Problem 1
Consider the sequence of three 4 x 4 images given below (Images 1 to 3). In all images, only 3 colors are present:
Black = 0, Gray = 128 and White = 255.
i - Show how median filtering can be used to estimate the static background of the sequence Image 1, Image 2 and
Image 3.
ii - Use the estimated background to detect motion in Image 4 using differential motion analysis with threshold = 50.
Image 1 Image 2 Image 3 Image 4
i-
255 255 255 128
255 128 128 128
255 128 128 128
255 128 128 128
1/2
German University in Cairo
Faculty of Media Engineering and Technology
Winter 2024
DMET 901 – Computer Vision
Problem Set # 9
ii -
255 255 255 128 255 255 255 255
255 128 128 128 255 128 128 255
255 128 128 128 255 128 255 255
255 128 128 128 255 128 128 128
Th = 50
2/2