Mix color and black and white in the same picture -custom colormaps
by Vijay Swaminathan
10 Mar 2008
(Updated 03 Apr 2008)
This GUI will allow you to take a color image and set regions of it to be black and white.
|
Watch this File
|
| File Information |
| Description |
This Graphical User Interface(GUI) will essentially allow you to give an antique look to your photos. You basically import a color image and draw as many regions (of any shape) on the image. These regions will retain the original color while the rest of the image will appear black and white. This demo illustrates how to get around the limitation of MATLABĀ® figures of not allowing two colormaps for the same figure.
You may download the zip file "colormix.zip" and unzip it to a folder on your machine. The files contained are:
1. colormix.m
2. colormix.fig
3. nature32.bmp -> an example input image
You run colormix.m to start the GUI. Click browse and select an image. The image is now shown in grayscale. You may now click "Add ROI" and then create a region of interest on the image. This region will now be in color. You may UNDO as many regions of interests (ROI's) as you want. Once you are satisfied, you may save your work as a JPG file in the current directory. The GUI has been tested in R2007b and R2008a. |
| Required Products |
Image Processing Toolbox
|
| MATLAB release |
MATLAB 7.5 (R2007b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 13 Mar 2008 |
Editing some text in the description |
| 03 Apr 2008 |
editing title and keywords |
|
Contact us at files@mathworks.com