View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
The Warholer

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 89.6 KB File ID: #37816 Version:
image thumbnail

The Warholer


Matt Tearle (view profile)


15 Aug 2012 (Updated )

GUI that displays an 8-color version of an image, based on RGB thresholding.

| Watch this File

File Information

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.

Required Products MATLAB
MATLAB release MATLAB 8.0 (R2012b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
04 Jan 2013 Matt Tearle

Matt Tearle (view profile)

Thanks for that, Mohammad. Dumb copy-paste error on my part. I've submitted a corrected version.

Comment only
04 Jan 2013 Mohammad

Great App. However, I have found one bug here. When you change the threshold value of G and B channel, the changed value is always reflected to the R channel instead of being reflected to the corresponding channels.

Comment only
12 Sep 2012 1.1

Updated file to include as an App for R2012b.

04 Jan 2013 1.4

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

01 Sep 2016

Updated license

Contact us