Perhatikan kode berikut untuk menghitung histogram:
```
hist = cv.____([img], [0], None, [256], [0,256])
```
Function yang tepat adalah:
TA MODUL 12 (VERSI 2)
Quiz
•
Computers
•
University
•
Medium
Ibes Ibes
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perhatikan kode berikut untuk menghitung histogram:
```
hist = cv.____([img], [0], None, [256], [0,256])
```
Function yang tepat adalah:
histogram
calcHist
computeHist
getHist
Answer explanation
cv.calcHist() digunakan untuk menghitung histogram citra.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perhatikan kode berikut:
```
ret, thresh = cv.threshold(img, 127, 255, ____)
```
Parameter yang tepat untuk binary thresholding adalah:
cv.THRESH_BINARY
cv.THRESH_TOZERO
cv.THRESH_TRUNC
cv.THRESH_OTSU
Answer explanation
THRESH_BINARY menghasilkan citra biner dengan dua nilai (0 atau 255).
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara menampilkan citra menggunakan OpenCV?
```
cv.____('Image', img)
```
show
imshow
display
view
Answer explanation
cv.imshow() menampilkan citra dalam window.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang dilakukan oleh cv.GaussianBlur()?
Menajamkan citra
Menghaluskan citra
Mendeteksi tepi
Mengubah kontras
Answer explanation
Gaussian blur mengurangi noise dengan menghaluskan citra.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perhatikan kode berikut:
```
dft = cv.dft(np.float32(img), flags=____)
```
Flag yang tepat untuk complex output adalah:
cv.DFT_COMPLEX_INPUT
cv.DFT_COMPLEX_OUTPUT
cv.DFT_REAL_OUTPUT
cv.DFT_BINARY_OUTPUT
Answer explanation
Flag ini menghasilkan output kompleks dari DFT.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perhatikan kode berikut:
```
dst = cv.______(img, -1, kernel)
```
Function yang tepat untuk konvolusi 2D adalah:
convolve
filter2D
convolution
apply
Answer explanation
cv.filter2D() melakukan konvolusi citra dengan kernel.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perhatikan kode berikut:
```
contours, hierarchy = cv.______(thresh, cv.RETR_TREE)
```
Function yang tepat untuk mencari kontur adalah:
getContours
findContours
detectContours
searchContours
Answer explanation
cv.findContours() mendeteksi kontur dalam citra.
15 questions
HTML
Quiz
•
University
12 questions
css
Quiz
•
University
10 questions
10/29
Quiz
•
6th Grade - University
10 questions
Imágenes en Bootstrap y CSS
Quiz
•
University
8 questions
Web Design HTML Pt. 2
Quiz
•
University
10 questions
Serba Serbi Prospek Kerja Teknologi Informasi
Quiz
•
University
10 questions
BOOTSTRAP
Quiz
•
University
13 questions
HTML тегтері
Quiz
•
1st Grade - University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade