The Warholer

版本 1.4.0.1 (89.6 KB) 作者: Matt Tearle
GUI that displays an 8-color version of an image, based on RGB thresholding.
1.1K 次下载
更新时间 2016/9/1

查看许可证

The color of each pixel in an image is specified by a combination of three values: red, green, and blue. These values typically take 256 levels, leading to 256^3 ~ 17 million possible colors.
In this GUI you can set a threshold value for each channel (R/G/B). If the color is above the threshold, it takes the maximum value (255); if not, it takes the minimum value (0). This "all or nothing" approach means that each color channel has only two possible levels, resulting in only 2^3 = 8 colors.

Hence, each of the 17 million possible colors is "rounded" to one of: red, green, blue, cyan, yellow, magenta, black, and white.

The result is an effect reminiscent of Andy Warhol's iconic celebrity paintings.

引用格式

Matt Tearle (2024). The Warholer (https://www.mathworks.com/matlabcentral/fileexchange/37816-the-warholer), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

warholer/

版本 已发布 发行说明
1.4.0.1

Updated license

1.4.0.0

Fixed bug where changes to G and B channel were reflected in R channel instead.

1.1.0.0

Updated file to include as an App for R2012b.

1.0.0.0