Mathematica 9 is now available

Color Image Modification

download notebookDownload this example as a Mathematica notebook.


Digital Image Processing allows you to manipulate color images as conveniently and easily as monochrome images. Color images may be represented in three different color formats and two different color interleaving methods, allowing you to select the most appropriate format for any color processing application.

[Graphics:Images/index_gr_1.gif]

Consider the effect of changing contrast in the saturation and value channels of an HSV color image.

This loads the example "bean" image and converts it to the HSV color format.

[Graphics:Images/index_gr_2.gif]

Here we split the image into three independent channels so that we may manipulate each channel.

[Graphics:Images/index_gr_3.gif]

This decreases the saturation and increases the luminance in the respective channels.

[Graphics:Images/index_gr_4.gif]

This recombines the individual color channels into composite color images.

[Graphics:Images/index_gr_5.gif]

Here we display the original (left) and the modified images (center, right).

[Graphics:Images/index_gr_6.gif]

[Graphics:Images/index_gr_7.gif]