[컴퓨터비전] 중간 Assignment 정리

나경·2024년 10월 31일
0

Assignment1

(1) When you’re entering the dark room, what is your choice between F/2.0 and F/8.0 ?
We need more light, F/2.0

(2) When you’re going outside sunny day, what is your choice between F/2.0 and F/8.0 ?
We need less light, F/8.0

(3) In order to take a picture of a fast moving car, you increase the shutter speed.
What is the side effect for this choice?

Fast Shutter speed -> Short Exposure Time -> Less Light -> Under-Exposure

Assignment2

Let’s assume that you are in the moving car and taking picture. Based on above pictures, what is the moving direction of the car?

처음에는 물체가 왼쪽에서 오른쪽으로 움직이고 있다는 것을 알 수 있습니다.
그러나 우리는 움직이는 자동차 안에 있다고 가정합니다. 따라서 자동차의 방향은 이미지에서 물체의 방향과 반대이어야 합니다.
따라서 움직이는 자동차의 방향에 대한 답은 "왼쪽" 또는 "오른쪽에서 왼쪽으로"입니다

Assignment3

Assignment4

Assignmant5

The given range is 0 to 255. Let's assume that you are trying to apply 1bit quantization.
Plz answer the below questions.

(1) What is the number of intervals?
range = |max - min| = |255 - 0| = 255
(2) What is the quantization step?
2^1-1=1

(3) if the input is 120, what is the quantization result(binary value)?
0 <= 120 < 127.5
따라서 0

(4) if the input is 120, what is the quantization error (= real value - estimated value)?
120-0=120

(5) if the input is 250, what is the quantization result(binary value)?
127.5 <= 250 < 382.5
따라서 1

(6) if the input is 250, what is the quantization error (= real value - estimated value)?
250-255=-5

Assignment6

Resolution 10x10, 8bits Quantization ( 1Byte = 8bits). Plz answer the below questions.

(1) How many bytes is need to store one Bayet Pattern image?
(10x10 pixels) x ( 1 bytes/pixel)
(2) How many bytes is need to store one RGB image?
(10x10 pixels) x ( 3 bytes/pixel)
(3) How many bytes is need to store one YCbCr4:4:4 image?
(10x10 pixels) x ( 3 bytes/pixel)

(4) How many bytes is need to store one YCbCr4:2:0 image?
(10x10 pixels) x ( 1+1/4+1/4 bytes/pixel)

Assignment7

LTE support 1 Gbps (Giga bits per second). Let's assum that you are recording a full-HD video at 30 fps ( frame per second) and

its file format is YCbCr 4:2:0 (8bits quantization). is it possible to tansfer a 30 fps full-HD vidoe in the real time?

(full-HD=1920x1080)

(1920x1080x30) x ( 1+1/4+1/4 bytes/pixel)
= (1920x1080x30) x ( 1.5x8 bits/pixel)
= (1920x1080x30) x ( 12 bits/pixel) ( 1920 -> 2000 / 1080 -> 1000)
= (2000x1000x30) x ( 12 bits/pixel)
= 720000000 bits = 0.72 Gbits
The network bandwidh supports 1 Gbits for a second, which is larger than 0.72 Gbits.
Thus, it is possible to record full-HD video at 30 fps in real time.

Assignment8

L=10 (the range is 0 to 9) , 5x5 image is given like the below

1 1 2 2 2

0 1 3 4 3

2 3 6 7 3

4 5 8 7 7

3 4 4 4 3

(1) Calculate Histogram

(2) Make the chart for the Histogram Equalization like page 11

(3) Draw the Image enhanced by the Histogram Equalization

Assignment9

Before solving this assignment, plz look over "gamma_correction_example.docx".

L = 9 (the number of quantization levels), the display is following gamma=2.

For a given 2x2 like below, plz generate the gamma corrected image.

3 4

7 8

Assignment10

cos(x) cos(x+π/2) cos(2x) cos(2πx) (π is pi)

Please draw four functions on the paper with marking x-axis intersections and periods.

0개의 댓글