Part II - Zebra Stripes for Images

Explanation

This requirement is similar to the Gray Threshold. Instead of taking a threshold value, the gray value for each pixel is compared with a zebra filter. Gray values ranging between:
0-31, 64-95, 128-159, 192-223
 are set to black while the rest retain their gray pixels. The expected outcome is a blend between black and gray color. This is shown by the output below:



Question

1. What would be the use of such a filter for images?
The image filter makes colors with similar grayscale values to be recognized (by turning them into black, or setting them to gray). This allows the detection of color brightness which can then be filtered based on the zebra strip width to display only gray values for a certain range.

2. What does the effect look like?
It looks like a messy grayscale image with a bit of distortion in terms of edges. At certain parts (the hair) edges seem to be less obvious although the wooden panels in the background seem to be distinctively clear. Smooth surfaces also seem to be less implied here, but that is dependent on color.

Reflection
Actually, I don't know how to describe the image. Earlier, I demonstrated this assignment to Mr. Rimi who is the lecturer in charge. He created a gradient image (white slowly turning to black) and we used that image to experiment these zebra stripes. The effect was much more clearer there as I could see stripes alternating between the original pixels and the stripe-altered regions.

I went like 'oooohhhhhhhhhhhhhhh!', literally.

No comments:

Post a Comment