RGBToOPP

Extract the opponent process colour representation.

 

function call:

[out_img1]=vsg('RGBToOpp',in_img1);

 

Arguments:

in_img1 - input image, 3 channel RGB, 1 channel greyscale or binary image.

 

Description:

The Opponent Process Representation emphasis the difference between red and green, yellow and blue, and black and white colour components in an image.

out_img1 – an image with the same dimensions as the input image, which has been transformed into the opponent colour space. The first colour channel is the red-green, second is blue-yellow and third is the white-black colour channels.

 

Example:

img = openimage('lake.jpg');

[out_img1]=vsg('RGBToOpp',img);

 

Notes:

For single channel images, the single channel image is returned as is.

Home       Functions       Back