Code covered by the BSD License  

Highlights from
Chess with "Greedy Edi"

image thumbnail

Chess with "Greedy Edi"

by

 

07 Nov 2009 (Updated )

Play chess against "Greedy Edi".

replaceRGBValue

replaceRGBValue

replaceRGBValue A value is replaced in an image matrix

Contents

Syntax

Y = replaceRGBValue(X, value2rep, with_values)

Description

A certain value is replaced by several values (for each dimension a value is possible) in an image matrix (dimension>2).

Inputs:

  • X ... uint8 nxm matrix (m>2)
  • value2rep ... a single value which is to replace
  • with_values ... the values to put instead (for dimension a value)

Outputs:

  • Y ... uint8 nxm matrix with replaced value

Example

Given is an uint8 image matrix (which was loaded with imread), with Y = mirrorImage(X) you get the image upside down.

See also

mirrorImage, image, imread

Signature

  • Copyright 2006 W.Garn

Contact us