imadd

Utility function for images which adds a matrix or a constant to a given matrix, x.

Syntax

R = imadd(x, y)

Inputs

x
Non-sparse, real 2D/ND matrix.
Type: ND matrix
y
Non-sparse, real 2D/ND matrix or a scalar.
Type: scalar

Outputs

R
Type: ND matrix

Examples:

Adds a constant to the given input:

R = imadd(imread('test.bmp'), 100);