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.
10 questions
Serba Serbi Prospek Kerja Teknologi Informasi
Quiz
•
University
15 questions
Quiz-2: HTML & CSS (AIML)/CC/1st Year
Quiz
•
University
10 questions
QUIZ on html
Quiz
•
University
15 questions
Quiz Algoritma Looping
Quiz
•
University
10 questions
html тегтеріне тапсырма
Quiz
•
University
11 questions
Basic HTML & HTML5
Quiz
•
University
10 questions
JSPS Competition Hackathon - HTML Language Grade 4 & 5
Quiz
•
4th Grade - University
10 questions
Html/Css Quiz Day 1
Quiz
•
University
15 questions
Multiplication Facts
Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz
Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set
Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025
Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)
Quiz
•
9th - 12th Grade
15 questions
June Review Quiz
Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles
Quiz
•
8th Grade
25 questions
Triangle Inequalities
Quiz
•
10th - 12th Grade