So, to perform a threshold, I used the gray value obtained by using either:
- (R + G + B) / 3
- (0.3*R) + (0.59*G) + (0.11*B)
Question
- Would the threshold calculated by one method be equivalent to that calculated by the second method? Why / why not?
No. The first method, (R + G + B) / 3 simply returns the average values among the three colors. The other method, (0.3*R) + (0.59*G) + (0.11*B) returns the weighted average, since each color carries a different weight with regards to perceptions made by the human eye.
Reflection
I initially thought grayscale thresholding would result in a grayscale image, but it seems that I was wrong. At least according to the requirement's intructions. Doing this was fairly easy, but unknowingly, this became the base for all other requirements. In other words, this is where I learned and understood about pixel and RGB components access.

No comments:
Post a Comment