Y = imapplymatrix(M,X)
computes the linear combination of the rows of M with the color
channels of X.
Y = imapplymatrix(M,X,C)
computes the linear combination of the rows of M with the color
channels of X, adding the corresponding constant value
C to each combination.
M — Weighting coefficients for each color channel q-by-p numeric array
Weighting coefficients for each color channel, specified as a
q-by-p numeric array.
p is the length of the third dimension of
X. In other words,
p=size(X,3). q
is in the range [1,p].
X — Input image m-by-n-by-p
numeric array
Input image, specified as an
m-by-n-by-p
numeric array.
C — Constant to add to each channel q-element numeric vector
Constant to add to each channel during the linear combination, specified
as q-element numeric vector, where q
is the number of rows in M.
Data Types: double
output_type — Output data type 'double' | 'single' | 'uint8' | 'uint16' | 'uint32' | 'int8' | 'int16' | 'int32'
Output data type, specified as one of the following:
'double', 'single',
'uint8', 'uint16',
'uint32', 'int8',
'int16', or 'int32'.
Output image comprised of the linear combination of the rows of
M with the color channels of
X, returned as a numeric array. If
output_type is not specified, the data type of
Y is the same as the data type of
X.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.