133 team check 1

5.0(1)
Studied by 1 person
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

20 Terms

1
New cards

Why might HSV be preferred over RGB for certain computer vision tasks?

HSV separates (hue) from (value) and (saturation), making it easier for algorithms to distinguish colors, while RGB considers them all together.

2
New cards

Describe hue, saturation, and value in your own words.

Hue represents the color itself, saturation indicates the intensity or purity of the color, and value reflects the brightness or lightness of the color.

3
New cards

Why must RGB values be normalized to the [0-1] range in the rgb_to_hsv function?

HSV operates on a scale of [0,1] so the saturation and value outputs are valid.

4
New cards

What are max, min, and delta, and why are they important?

max is the highest value, min is the lowest value, and delta is the difference between max and min for values of R,G, and B. ; they are important for calculating hue, saturation, and value in the HSV color model.

5
New cards

Why should the rgb_to_hsv function return floating-point values instead of unit8?

unit 8 can only store whole numbers, and using it would lose / round the decimal values needed from 0-1

6
New cards

How are you applying the rgb_to_hsv function to every pixel?

Your are doing this through the convert_to_hsv function using a nested for loop, and then calling that function in the main function.

7
New cards

Why is resizing and padding to a standard size necessary?

Resizing and padding ensures all images have the same dimensions, while not distorting them

8
New cards

What would happen if the input image to the convert_to_hsv were grayscale?

It will cause an error in the program since it only has two dimensions, compared to a 3 channel color image (check)

9
New cards

How do you construct a normalized mean kernel?

Create a matrix of the number 1 with the given dimensions, then divide each number by the total pixel number

10
New cards

How does a kernel perform filtering on an image?

it slides across every pixel in an image, multiplies its numbers by the image numbers and then adds them to make up the final picture

11
New cards

What is an image kernel?

A small matrix used to give visual effects to an image

12
New cards

What does it mean to use a sliding-window operation?

It means moving a small window over a larger image, evaluating one area at a time.

13
New cards

How does padding affect output image size?

Padding either keeps the image size the same or increases it

14
New cards

How do you determine the amount of zero-padding required?

Divide the kernel size by 2 and round the answer down, which determines the amount of pixels needed at the border of the image

15
New cards

What is stride, and what does stride = 1 mean?

Stride is how many pixels the window moves at a time, a stride of one means the window shifts by one pixel for each calculation.

16
New cards

Why must kernel_size be an odd number?

It must be odd so there is a center to the matrix that fits a pixel clearly

17
New cards

Explain the difference between mean blur and Gaussian blur in terms of weighting.

Mean blur gives equal value to surrounding pixels, while gaussian filtering gives different weight to surrounding pixels depending on their closeness

18
New cards

Why is blurring typically performed before feature extraction steps like edge detection?

blurring smoothes out any noise, making sure the images edges are accurate

19
New cards

Why is Gaussian blur typically preferred over mean blur for this workflow?

A mean blur would create blocky, imperfect image edges, while a gaussian blur can smooth out these imperfections and make the edges look more sharp.

20
New cards

What effect does sigma have on the Gaussian kernel?

sigma controls the distribution of the kernel, which affects the strength of the blur