from
Chess with "Greedy Edi"
by Wolfgang Garn
Play chess against "Greedy Edi".
|
| replaceRGBValue |
replaceRGBValue
replaceRGBValue A value is replaced in an image matrix
Contents
SyntaxY = 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
|
|
Contact us at files@mathworks.com