$25
CS 4476/6476 PS4
Color Quantization with K-
Means
2.1 Color Quantization of RGB images
2.2 Color Quantization of HSV images
2.3 Quantization error (remember to use the random state initialized in the script).
Enter values as loge(error)
k
RGB
HSV
3
20.396
19.195
5
19.95
18.07
10
19.38
16.956
1.4 Answers (1-2 sentences each)
a) Increasing the number of quantization bins produces richer images as more colors can be used. It also increases the runtime of the algorithm significantly. As one can see, the error reduces as well.
b) The error is lower and reduces faster while the images are clearer and brighter as well. This is because HSV seperates the intensity from the color and we only run K-Means on the hue values. Therefore the images look better.
c) Peak Signal to Noise Ratio = 20 * log (max pixel value) – 10 * log(Mean squared error) [Monochrome images – can be adapted for color images by averaging MSE over channels]
The Structural SIMilarity (SSIM) index is a method for measuring the similarity between two images. The SSIM index can be viewed as a quality measure of one of the images being compared, provided the other image is regarded as of perfect quality. It is implemented in MATLAB and has a rather complicated formula.
Hough Transform
Hough Transform on Generated Images
3.1.1 Traffic lights - Blank
3.1.2 Traffic lights - Scene
3.2.1 Stop sign detection
3.2.2 Warning sign detection
3.2.3 Construction sign detection
3.2.4 Do not enter sign detection
3.2.5 Yield sign detection
Extra Credit
Hough Transform on Real Images
4.1 Known Radius
<Insert images of detected circles here
4.1 Known Radius
<Insert images of different thresholds here
4.2 Unknown Radii
<Insert image here