imsubtract

Utility function for images which subtracts a matrix or a constant from a given matrix, x.

Syntax

R = imsubtract(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:

Subtracts a constant from the given input:

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